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 **
Turns out you found a bug in libtiff. This will be fixed in the next release of Magick.NET. It should raise a warning exception instead of an error exception. Warning exceptions are ignored while reading. For now you can catch the MagickCoderErrorException when you read the image. You can use that image to create your jpeg. If you have more questions please contact me through CodePlex.