After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699230 - Indexed XPM files are imported as RGB images (regarding their color mode)
Indexed XPM files are imported as RGB images (regarding their color mode)
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
2.8.4
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2013-04-29 14:45 UTC by Ricardo
Modified: 2018-05-24 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ricardo 2013-04-29 14:45:06 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.
Comment 1 Michael Natterer 2013-05-12 22:22:02 UTC
Please small example images: both xcf and exported XPM, as separate attachments.
Comment 2 Ricardo 2013-05-14 02:11:35 UTC
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
Comment 3 Michael Schumacher 2013-05-14 08:17:59 UTC
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.
Comment 4 Martin Owens 2013-09-09 23:03:34 UTC
@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.
Comment 5 Michael Schumacher 2014-10-28 13:36:22 UTC
Yes. GIMP's idea of indexed is currently limited to 256 colors per image, unfortunately.
Comment 6 GNOME Infrastructure Team 2018-05-24 13:41:40 UTC
-- 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.