GNOME Bugzilla – Bug 620492
Indexed PNG does not load with opacity
Last modified: 2010-06-04 00:52:13 UTC
Loading an image (attached) removes some alpha blending. Expected: alpha blending is kept. Actual: alpha is removed.
Created attachment 162662 [details] Example image that has opacity removed
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.
Can I do this on my end or is it a code change? Thanks!
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.
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 ***
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.