GNOME Bugzilla – Bug 65788
Save As 'by extension' .xbm causes unnecessary error message
Last modified: 2003-11-15 16:52:33 UTC
When I 'Save As' an RGB image 'By Extension' and choose .xbm, I get an Export dialog, as expected. And of course that dialog mentions converting to indexed using default settings. However, XBM expects 1-bit indexed, which is not my default setting. This causes error messages to start popping up. I feel that in this case GIMP should export to 1-bit indexed, not to the default setting for mode conversion to indexed. Some comments from others: <nomis> I think, the point is, that the XBM plugin registers itself for the INDEXED mode and it can handle indexed images. There is IIRC no way for a plugin to specify "I just want to operate on bitmap images". <Sven> the export function could be extended to make this work <Sven> I doubt it's worth the effort
Changes at the request of Dave Neary on the developer mailing list. I am changing many of the bugzilla reports that have not specified a target milestone to Future milestone. Hope that is acceptable.
This would probably mean to introduce a new image type: Bitmap. IMO not worth the effort.
Fixed in CVS: 2003-11-15 Michael Natterer <mitch@gimp.org> * libgimp/gimpexport.[ch]: added new export capabilities GIMP_EXPORT_CAN_HANDLE_BITMAP and _CAN_HANDLE_LAYER_MASKS and export the image accordingly. Code cleanup. * plug-ins/common/xbm.c (run): replaced _CAN_HANDLE_INDEXED by _CAN_HANDLE_BITMAP. Fixes bug #65788. * plug-ins/common/psd_save.c (run): added export stuff so layer masks are applied before saving. Fixes bug #119732. * plug-ins/common/Makefile.am * plug-ins/common/plugin-defs.pl: link psd_save against GTK+ and libgimpui.