"Improper call to JPEG library in state" grey Old JPEG TIFF
Posted: 2010-09-15T04:43:54-07:00
(I reported this issue before through the "contact the wizards" feature a few months ago, but it isn't fully solved yet and I found this forum now and also have some new information)
Hello,
ImageMagick 6.6.3-7 2010-08-14 Q16 (I know this is not the latest version, see my other bug report of today) can't handle a grey old JPEG file. The file is here:
http://www.megafileupload.com/en/file/2 ... n-TIF.html
After a few warnings because it is an old JPEG file, there is this error:
Magick: Improper call to JPEG library in state 0. `LibJpeg' @ error/tiff.c/TIFFErrors/494.
I did compile libtiff (which I believe you are using) including the IJG lib at home yesterday and tiffcp works fine, i.e.
tiffcp -c jpeg termin.tif huhu.tif
produces a proper "new JPEG" tiff file.
Thus, the libtiff can do it, but ImageMagick can't.... I used version 3.9.4.
Funny thing is that ImageMagick has no problem handling a color "old JPEG" tiff, although both file types are similar: the actual JPEG starts at 0x300, according to the JPEGInterChangeFormat tag. (I can cut off 0x300 bytes with a hex editor and save it, and poof!, its a jpeg file )
Tilman Hausherr
Hello,
ImageMagick 6.6.3-7 2010-08-14 Q16 (I know this is not the latest version, see my other bug report of today) can't handle a grey old JPEG file. The file is here:
http://www.megafileupload.com/en/file/2 ... n-TIF.html
After a few warnings because it is an old JPEG file, there is this error:
Magick: Improper call to JPEG library in state 0. `LibJpeg' @ error/tiff.c/TIFFErrors/494.
I did compile libtiff (which I believe you are using) including the IJG lib at home yesterday and tiffcp works fine, i.e.
tiffcp -c jpeg termin.tif huhu.tif
produces a proper "new JPEG" tiff file.
Thus, the libtiff can do it, but ImageMagick can't.... I used version 3.9.4.
Funny thing is that ImageMagick has no problem handling a color "old JPEG" tiff, although both file types are similar: the actual JPEG starts at 0x300, according to the JPEGInterChangeFormat tag. (I can cut off 0x300 bytes with a hex editor and save it, and poof!, its a jpeg file )
Tilman Hausherr