Page 1 of 1

Identify is failing on a JPEG file (worked before)

Posted: 2014-03-31T02:23:12-07:00
by mortoray
I have a JPEG file (below) that `identify` is no longer able to process. It fails with the error "lcms: Error #12288; Pointer error; probably corrupted file". Strangely `convert` doesn't have a problem with the file. Nor did `identify` from a previous IM version "6.6.9-7".

Version: ImageMagick 6.8.8-10 Q16 x86_64 2014-03-31 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fontconfig freetype jng jpeg lcms lqr openexr pangocairo png tiff webp x xml zlib

Image

Re: Identify is failing on a JPEG file (worked before)

Posted: 2014-03-31T09:06:15-07:00
by glennrp
Nice photo. I don't have any problem with "identify -verbose flowers.png" with IM-6.8.8-10-Q16, on Ubuntu 14.04LTS.
"ldd" says I'm running libjpeg version 8: libjpeg.so.8 => /home/glennrp/lib/libjpeg.so.8
So does "convert -list format | grep JPEG" (the "(80)" means version 8 ):
JPEG* rw- Joint Photographic Experts Group JFIF format (80)

Re: Identify is failing on a JPEG file (worked before)

Posted: 2014-03-31T09:26:03-07:00
by mortoray
I'm using Ubuntu 12.04 LTS. Also libjpeg.so.8. List format also shows the same version. But I don't the issue is with decoding, since the error occurs strictly with identify: convert is able to load the file. I think "lcms" is the library responsible for the color profiles, so perhaps the problem is there...

...in any case though, with all other things equal the previous `identify` had no problem on this configuration. It's only when I built this newer version that I have the problem.

Re: Identify is failing on a JPEG file (worked before)

Posted: 2014-03-31T10:31:28-07:00
by glennrp
mortoray wrote: I think "lcms" is the library responsible for the color profiles, .
"ldd" says I have liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2

Re: Identify is failing on a JPEG file (worked before)

Posted: 2014-03-31T10:46:29-07:00
by mortoray
My system is using liblcms.so.1

Re: Identify is failing on a JPEG file (worked before)

Posted: 2014-03-31T11:27:17-07:00
by fmw42
Download and install LCMS 2 from http://www.littlecms.com/, then recompile IM

Re: Identify is failing on a JPEG file (worked before)

Posted: 2014-03-31T23:18:25-07:00
by mortoray
Installing lcms2 makes the problem go away.