Problem with XPM Pictures

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
Michi21609

Problem with XPM Pictures

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with XPM Pictures

Post by magick »

We have a patch for the problem you reported in ImageMagick 6.5.3-9 Beta available sometime tomorrow. Thanks.
Michi21609

Re: Problem with XPM Pictures

Post by Michi21609 »

Is it already patched?

Regards!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with XPM Pictures

Post 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.
noisyb
Posts: 1
Joined: 2018-06-07T12:50:39-07:00
Authentication code: 1152

Re: Problem with XPM Pictures

Post 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.
Post Reply