Page 1 of 1
fails on monochrome XPM image: not enough pixel data
Posted: 2015-11-08T12:44:55-07:00
by Hubbitus
Please look at one of our user report:
https://bugzilla.redhat.com/show_bug.cgi?id=1217178
There also reproduce image attached.
Re: fails on monochrome XPM image: not enough pixel data
Posted: 2015-11-08T13:12:52-07:00
by glennrp
Verified that IM-6.9.2-5 exhibits the bug. Adding one more line to the file, making it 36 rows but not changing the "35" in the header, makes a file that is then readable by IM, so there seems to be an off-by-one error in IM's xpm reader. But even though it's readable, it has the wrong color (medium gray instead of ivory).
As far as I can tell, the problem is with the use of " " as a palette index. The first line of pixels gets consumed when the decoder interprets it as a palette entry. I'm no sure whether that is a bug in IM or in the image file itself.
Re: fails on monochrome XPM image: not enough pixel data
Posted: 2015-11-08T14:14:11-07:00
by dlemstra
It is an IM bug and we just pushed a patch for this to our GIT repository. This will be fixed in ImageMagick 6.9.2-6 Beta, available by sometime tomorrow.
Re: fails on monochrome XPM image: not enough pixel data
Posted: 2015-11-10T13:00:38-07:00
by Hubbitus
Thank you. Could you please give link to commit or at least commit hash?
Re: fails on monochrome XPM image: not enough pixel data
Posted: 2015-11-10T13:16:04-07:00
by dlemstra