Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Is there a way to read photo after CRC error?

$
0
0
I have several photos that generate PNG CRC error:
ImageMagick.MagickCoderErrorException: IDAT: CRC error `' @ error/png.c/MagickPNGErrorHandler/1650 ---> ImageMagick.MagickCorruptImageErrorException: Corrupt image `' @ error/png.c/ReadPNGImage/4003
   --- End of inner exception stack trace ---
   at ImageMagick.MagickImage..ctor(Stream stream)
...
Here is an example of such image.

Yet those images can be viewed in windows.

I'm wondering is there a way to force Magick.NET to ignore CRC error or something like this to load this image? Like catch the exeption and if it contains "CRC error" then try to load with some other method/parameters?

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>