Identify is failing on a JPEG file (worked before)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mortoray
Posts: 17
Joined: 2014-02-12T21:36:17-07:00
Authentication code: 6789

Identify is failing on a JPEG file (worked before)

Post 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
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post 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)
mortoray
Posts: 17
Joined: 2014-02-12T21:36:17-07:00
Authentication code: 6789

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

Post 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.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post 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
mortoray
Posts: 17
Joined: 2014-02-12T21:36:17-07:00
Authentication code: 6789

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

Post by mortoray »

My system is using liblcms.so.1
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

Download and install LCMS 2 from http://www.littlecms.com/, then recompile IM
mortoray
Posts: 17
Joined: 2014-02-12T21:36:17-07:00
Authentication code: 6789

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

Post by mortoray »

Installing lcms2 makes the problem go away.
Post Reply