MagickReadImageBlob misidentifies an EPT as a PAM

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
draxil
Posts: 7
Joined: 2011-11-17T05:18:40-07:00
Authentication code: 8675308

MagickReadImageBlob misidentifies an EPT as a PAM

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Post by dlemstra »

Can you post a link to your image?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
draxil
Posts: 7
Joined: 2011-11-17T05:18:40-07:00
Authentication code: 8675308

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Post 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.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Post by dlemstra »

I can reproduce this problem on Windows 7.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
draxil
Posts: 7
Joined: 2011-11-17T05:18:40-07:00
Authentication code: 8675308

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Post by draxil »

Glad it's not just me, I should have mentioned all my tests were on Debian linux boxes.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Post 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.
Last edited by dlemstra on 2013-09-24T12:19:08-07:00, edited 2 times in total.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
draxil
Posts: 7
Joined: 2011-11-17T05:18:40-07:00
Authentication code: 8675308

Re: MagickReadImageBlob misidentifies an EPT as a PAM

Post by draxil »

Wow. Excellent. Thanks!
Post Reply