GNOME Bugzilla – Bug 159600
TIFF plugin doesn't handle indexed images with alpha channel
Last modified: 2018-05-24 11:17:12 UTC
The plugin for saving pictures as tiff seems not be able to cope with black/white pictures which have a transparent background. When trying to save the picture, an error message pops up saying: "Saving '/home/daniel/temp/tif_bug.tif' failed: Plug-In could not save image" Reproducible: Always Steps to Reproduce: - Create a new image with full colors and transparent background. - You may save it as a file type that supports transparency, such as (I tested these two) .png or .xcf. You may save it again at any time during this demonstration. - Do some painting operations in black on the picture, e.g. type some text. - Convert the image to Black&White (Image->Mode->Indexed...->Use Black&White (1-Bit) Palette->OK). You should now have a b/w image with some transparent background still visible. - Now try to save this image/export it: File -> Save As/ Save a Copy -> [filename].tif -> A compression dialogue appears, it doesn't matter what you chose. Actual Results: The above-mentioned error message appears, a file [filename].tif of 8 bytes is created. Expected Results: Either a) the plugin works and saves the image correctly or b) the user is asked whether it is ok to flatten the image for the purpose of saving it. Workaround: Flatten image by hand, then saving the image as tif works alright. At least sometimes, when I created a test image with nothing but the word "test" written on it, I saved and reopened it. When I now tried to flatten it, it became completely filled with black, no matter what my current background color was. Further thoughts: Does this bug also happen with other formats that dont support transparency?
Created attachment 34173 [details] test case for bug Try to convert this into a .tif image
The TIFF plug-in doesn't support INDEXED images with alpha channel and it clearly announces that ("RGB*, GRAY*, INDEXED"). Well, not to the user but GIMP knows about this and should probably tell the user that this won't work.
I've added a message that tells the user what's going on. Marking this bug report as an enhancement request for adding support for INDEXEDA to the TIFF plug-in. 2004-11-27 Sven Neumann <sven@gimp.org> * plug-ins/common/tiff.c (save_image): tell the user that we can't handle indexed images with alpha channel (bug #159600).
-- 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/102.