MagickIdentifyImage kills program

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hakelm

MagickIdentifyImage kills program

Post by hakelm »

I am using Pascalmagick under Delphi 7 on a Windows 7 AMD64 PC.
Executing MagickIdentifyImage(wand) on certain jpg-files silently kills the program without throwing any exception.
My code looks like this:
....
try
p:=MagickIdentifyImage(wand);
except
p:=nil;
end;
......
If I knew how to then I would like to attach one of the offending jpg-files but you can find one example at "http://smeden.org/bild/0903_Logoleiste_60k_2009[1].jpg"
What can I do?
Thanks in advance
Håkan
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: MagickIdentifyImage kills program

Post by magick »

We could identify your image without complaint with the latest ImageMagick release, ImageMagick 6.5.8-7. The LCMS delegate library did throw an exception:
  • lcms: Error #12288; Pointer error; probably corrupted file
We're using LCMS version 1.19.
hakelm

Re: MagickIdentifyImage kills program

Post by hakelm »

Thanks for your rapid answer but regretfully it doesn't help me.
The jpg file in question is a JFIF/JPEG file without any EXIF-tag.
Viewing it with different imaging programs gives different results.
In Paintshop Pro I get a series of multicoloured vertical bars, in Irfanview and Windows preview I get a proper (?) gray-scale image.
With the console version of Imagemagick I get:
C:\md\P\HEP\HEdelphi\bildkatalog\magicbug>identify jfif.jpg
jfif.jpg JPEG 580x46 580x46+0+0 8-bit DirectClass 44.8KB 0.000u 0:00.001

With Pascalmagick I can for instance get a signature for the file but MagickIdentifyImage crashes the program.
I have now installed the new ImageMagick 6.5.8-8 2009-12-18 Q16 and restarted windows.
The only CORE_RL_wand_.dll I have on my system is CORE_RL_wand_.dll file version 2.0.1.0 product version 6.5.8 from 2009-12-21 10:21

A simplified version of my program that shows this behaviuor with a data file can be found at http://smeden.org/magicbug.rar
Any further help is appreciated
Håkan
Post Reply