Page 1 of 1

MagickReadImageBlob misidentifies an EPT as a PAM

Posted: 2013-09-20T08:48:23-07:00
by draxil
Hi,
If I read a postscript with a binary header with MagickReadImageBlob and then do MagickGetImageFormat it mis-identifies it as a PAM. If I open the same image file directly with MagickReadImage it correctly identifies it as an EPT.

This is in 6.8.6-10. On an older server running 6.6.0 I can run the same code and no problems occur.

Any ideas on side stepping this as I don't really want the overhead of writing all my files to disk before I can identify them. Failing that I'll cope until a fix!

Thanks,
Joe

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Posted: 2013-09-20T12:01:05-07:00
by dlemstra
Can you post a link to your image?

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Posted: 2013-09-23T02:26:04-07:00
by draxil
Sure. The original image I used was actually a client's data, but seemingly I can reproduce it with any old eps that has the binary preview header:

http://digitalhippy.me.uk/testimage

As it happens with this one it seems to identify it as a PNG when I load it from a blob, and again correctly if I load it as a file.

Thanks.

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Posted: 2013-09-23T05:13:11-07:00
by dlemstra
I can reproduce this problem on Windows 7.

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Posted: 2013-09-23T08:33:46-07:00
by draxil
Glad it's not just me, I should have mentioned all my tests were on Debian linux boxes.

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Posted: 2013-09-23T10:09:49-07:00
by dlemstra
A patch has been submitted to the ImageMagick Subversion trunk. Thanks. This will be fixed in the next release 6.8.7-0.

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Posted: 2013-09-23T13:58:04-07:00
by draxil
Wow. Excellent. Thanks!