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 620492 - Indexed PNG does not load with opacity
Indexed PNG does not load with opacity
Status: RESOLVED DUPLICATE of bug 86627
Product: GIMP
Classification: Other
Component: Plugins
2.6.8
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2010-06-03 15:25 UTC by George Montana Harkin
Modified: 2010-06-04 00:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example image that has opacity removed (896 bytes, image/png)
2010-06-03 15:25 UTC, George Montana Harkin
Details

Description George Montana Harkin 2010-06-03 15:25:02 UTC
Loading an image (attached) removes some alpha blending.

Expected: alpha blending is kept.
Actual: alpha is removed.
Comment 1 George Montana Harkin 2010-06-03 15:25:47 UTC
Created attachment 162662 [details]
Example image that has opacity removed
Comment 2 Simon Budig 2010-06-03 15:29:48 UTC
This is an indexed PNG, which gets loaded as an indexed image in GIMP, and GIMPs indexed images don't support non-binary alpha properly.

To fix this the PNG probably should be imported as a RGBA image.
Comment 3 George Montana Harkin 2010-06-03 15:57:26 UTC
Can I do this on my end or is it a code change?

Thanks!
Comment 4 Simon Budig 2010-06-03 16:04:25 UTC
I believe this is a real bug that needs some attention at the code level. However, as a workaround you can create a new (RGBA) image and import the PNG file via "Open as Layers", this seems to preserve the shading.
Comment 5 Michael Schumacher 2010-06-03 23:20:01 UTC
The alpha channel should still be intact. Just change the image mode to RGB.

Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 86627 ***
Comment 6 George Montana Harkin 2010-06-04 00:52:13 UTC
Would an acceptable solution be to search the opened png for alpha channels and ask the user if they would like to switch to RGB mode?

I might take a stab at making a patch if it would be considered.