Page 1 of 1

Problem with XPM Pictures

Posted: 2009-06-18T08:48:57-07:00
by Michi21609
Hi!

I'm using ImageMagick to convert bmp to xpm. The problem is, that ImageMagick uses keywords like gray1, gray2 and black in its pixel-array. This causes high loading-times when I load the image in FLTK...

It should be like in GIMP where black is just 0x000000 or gray1 is 0x292929.

Is there and option I can chose so that ImageMagick does it in the GIMP-Way?

Thanks!

Re: Problem with XPM Pictures

Posted: 2009-06-18T10:04:57-07:00
by magick
We have a patch for the problem you reported in ImageMagick 6.5.3-9 Beta available sometime tomorrow. Thanks.

Re: Problem with XPM Pictures

Posted: 2009-06-19T08:25:02-07:00
by Michi21609
Is it already patched?

Regards!

Re: Problem with XPM Pictures

Posted: 2009-06-19T08:41:00-07:00
by magick
Apologies for taking so long to get the patch in the release but yes the patch is in the current release of ImageMagick 6.5.3-9.

Re: Problem with XPM Pictures

Posted: 2018-06-07T12:53:48-07:00
by noisyb
Sorry for reviving this old thread but the problem still exists in ImageMagick 6.8.9-9

How can I disable all use of color names?

I have the exact same problem and it seems that someone reversed the changes that this patch made.

I need the resulting XPM to have hex color values.

I tried creating an empty colors.xml but it is ignored.


Thank you.