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 159600 - TIFF plugin doesn't handle indexed images with alpha channel
TIFF plugin doesn't handle indexed images with alpha channel
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
2.0.x
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on: 86627
Blocks:
 
 
Reported: 2004-11-26 23:21 UTC by quazgar
Modified: 2018-05-24 11:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case for bug (730 bytes, image/png)
2004-11-26 23:24 UTC, quazgar
Details

Description quazgar 2004-11-26 23:21:36 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?
Comment 1 quazgar 2004-11-26 23:24:36 UTC
Created attachment 34173 [details]
test case for bug

Try to convert this into a .tif image
Comment 2 Sven Neumann 2004-11-27 12:01:01 UTC
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.
Comment 3 Sven Neumann 2004-11-27 12:40:28 UTC
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).
Comment 4 GNOME Infrastructure Team 2018-05-24 11:17:12 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/102.