Reputation: 55
I am using ImageMagick on ubuntu 16.04 machine in Azure to convert from tif to jpg. For most of the files it works perfect, but failing for few files with the error, convert: tif_jpeg.c:975: JPEGSetupDecode: Assertion `sp->cinfo.comm.is_decompressor' failed. Aborted (core dumped) I have no clue on this error, can someone please help me resolve this error.
Thanks in Advance.
Upvotes: 0
Views: 691
Reputation: 55
This issue was resolved by downgrading libtiff from libtiff.so.5.2.6 to libtiff.so.5.2.4 with ImageMagick version 7.0.7-7 Q16. Even if we do ImageMagick upgrade to 7.0.8.11 Q16, downgrade of libtiff is still required. As said by fmw42, tiff file might be created using older JPG compression and so downgrade worked here. Thanks @Mark and @fmw42 for all the helpful thoughts.
Upvotes: 1
Reputation: 207668
I guess your TIFF file uses some quite modern compression method (JBIG2 for example) and your ImageMagick is maybe outdated.
Try using:
tiffinfo YourImage.tif
to see the compression settings.
Try updating ImageMagick. You can get your installed version with:
identify -version
The modern world is on v7.0.8
Try updating your libtiff
package too.
Upvotes: 1