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 646652 - Empty PNG in GIMP
Empty PNG in GIMP
Status: RESOLVED DUPLICATE of bug 86627
Product: GIMP
Classification: Other
Component: General
2.6.10
Other Linux
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2011-04-03 21:25 UTC by Jean-Philippe Fleury
Modified: 2011-06-15 22:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample files. (7.07 KB, application/x-zip-compressed)
2011-04-03 21:25 UTC, Jean-Philippe Fleury
Details

Description Jean-Philippe Fleury 2011-04-03 21:25:18 UTC
Created attachment 185063 [details]
Sample files.

Some PNG files optimized with OptiPNG (<http://optipng.sourceforge.net/>) are open empty in GIMP. I'll attach a sample file that always reproduces this bug:

1) Open sample.xcf. It contains a big symbol π with DejaVu Sans Mono and opacity of 4.7%.

2) Create a PNG with default settings. Result is sample-gimp.png, also attached to this report.

3) Optimize this PNG (result is also attached, see sample-optipng.png):


$ optipng -keep -o7 sample-gimp.png 
OptiPNG 0.6.4: Advanced PNG optimizer.
Copyright (C) 2001-2010 Cosmin Truta.

** Processing: sample-gimp.png
695x800 pixels, 4x8 bits/pixel, RGB+alpha
Reducing image to 4 bits/pixel, 14 colors (13 transparent) in palette
Input IDAT size = 4288 bytes
Input file size = 4436 bytes

Trying:
  zc = 9  zm = 9  zs = 0  f = 0		IDAT size = 2002
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 2002
  zc = 8  zm = 9  zs = 0  f = 0		IDAT size = 1964
  zc = 8  zm = 9  zs = 1  f = 0		IDAT size = 1964
  zc = 9  zm = 9  zs = 0  f = 5		IDAT size = 1872
                               
Selecting parameters:
  zc = 9  zm = 9  zs = 0  f = 5		IDAT size = 1872

Output IDAT size = 1872 bytes (2416 bytes decrease)
Output file size = 2094 bytes (2342 bytes = 52.80% decrease)


4) Open sample-optipng.png in GIMP.

Actual result: GIMP opens it, but the file is empty, just a 695x800 transparent image.

Expected result: see the translucent symbol π.

More information: no problem to use sample-optipng.png with other software like Inkscape, Eye of GNOME, OpenOffice.org Draw, Firefox, etc.
Comment 1 Mikael Magnusson 2011-04-03 22:01:58 UTC
Same thing happens here, however, if you select Image -> Mode -> RGB, the image magically appears again. Presumably this is to do with gimp only supporting 1-bit transparency in indexed files.
Comment 2 Michael Schumacher 2011-06-15 22:01:54 UTC
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 ***