GNOME Bugzilla – Bug 699230
Indexed XPM files are imported as RGB images (regarding their color mode)
Last modified: 2018-05-24 13:41:40 UTC
I'm really sure if could be a bug, because I newest user of GIMP software. I just want to report and issue when a image file is modified as colour resolution by Image->Mode->Indexed... and select Generate optimum palette, set the maximum number of colours to 14. When these file is exporter to XPM extension (because GIMP 2.8.4 it doesn't have capability "save as" to XPM extension option), it seems exported file it doesn't keep colour resolution? By the way I couldn't find the way to check exporter file property details and if have been saved according to image settings change, because GIMP almost open file it open as default mode xcf.
Please small example images: both xcf and exported XPM, as separate attachments.
Dear Unfortunately as no coming answer, I have uninstalled GIMP, by the way I solved with CorelDraw. I found file but I can't confirm if could be help for your analysis and investigation. Mc GRATH Ricardo
The XPM load handler always creates GIMP_RGB images - https://git.gnome.org/browse/gimp/tree/plug-ins/common/file-xpm.c#n381 The export handler writes indexed XPM files. One of the problems we faced was that IIRC XPM can easily contain more than 256 colors.
@Michael - I have just experienced this same bug. Gimp should support an any index size, not just 256 entries. 256 is just an arbitrary fixed number based on the size of a byte.
Yes. GIMP's idea of indexed is currently limited to 256 colors per image, unfortunately.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/470.