Reading TIFF CCITT Group 4 (scanned or faxed) images with MagickImage in C# throws MagickCoderErrorException. The exception message is shown below:
Magick:: Null count for "Tag 32934" (type 4, writecount -3, passcount 1).
'_TIFFVSetField' @ error/tiff.c/TIFFErrors/563
If the TIFF image is decompressed first, then the reading works fine. Anyone came across this error before and any suggestions on how to resolve this?
Thanks,
Sam
Comments: ** Comment from web user: dlemstra **
Magick:: Null count for "Tag 32934" (type 4, writecount -3, passcount 1).
'_TIFFVSetField' @ error/tiff.c/TIFFErrors/563
If the TIFF image is decompressed first, then the reading works fine. Anyone came across this error before and any suggestions on how to resolve this?
Thanks,
Sam
Comments: ** Comment from web user: dlemstra **
I can talk to the other developers of ImageMagick and see if we can change the type to a warning instead of an error. This might not be easy. For now you could catch the MagickCoderErrorException and check the message to determine if you want to ignore it. This exception is thrown after the image has been read completely so you can still use the image.