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 62847 - png saves bad with background color
png saves bad with background color
Status: RESOLVED NOTABUG
Product: GIMP
Classification: Other
Component: Plugins
1.x
Other Linux
: Normal normal
: ---
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2001-10-23 06:21 UTC by darsie
Modified: 2004-04-01 23:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
badly displayed image (252.00 KB, image/png)
2001-10-23 06:34 UTC, darsie
Details
bpu.gif, source file that I converted to bpu-background.png (327.55 KB, image/gif)
2001-10-23 06:38 UTC, darsie
Details

Description darsie 2001-10-23 06:21:39 UTC
Netscape 4.77 displays the image at the given URL with less colors when it
is saved as indexed png with _background_color_. A similar but smaller
image (bp.gif) is displayed correctly.

Dunno wether this is a Netscape or GIMP bug.

bad image with 'save background color' parameter:
http://rainbow.hn.org/bernhard/bpu-background.png
good image without 'save background color' parameter:
http://rainbow.hn.org/bernhard/bpu-background.png
source image:
http://rainbow.hn.org/bernhard/bpu.gif
small image (with background color):
http://rainbow.hn.org/bernhard/bp.png
http://rainbow.hn.org/bernhard/bp.gif

Please don't download the images more than necessary from my server. Maybe
you can copy them to your site and update the URLs. Thank you.
Comment 1 darsie 2001-10-23 06:34:15 UTC
Created attachment 5894 [details]
badly displayed image
Comment 2 darsie 2001-10-23 06:38:49 UTC
Created attachment 5895 [details]
bpu.gif, source file that I converted to bpu-background.png
Comment 3 darsie 2001-10-23 06:43:58 UTC
I attached

bpu-background.png
http://bugzilla.gnome.org/showattachment.cgi?attach_id=5894
and 
bpu.gif
http://bugzilla.gnome.org/showattachment.cgi?attach_id=5895
and deleted bpu-background.png from my server.

I'm not sure, maybe the colors are just displayed wrongly and are not
less.

Bernhard
Comment 4 Sven Neumann 2001-10-23 09:11:27 UTC
This is not a GIMP bug, but a known problem with your browser. Support
for transparent PNGs is broken in all versions of Netscape 4.x that I
know of. Try to load your images in Mozilla, they display correctly.

Here's a good page to test your browsers PNG capabilities:

   http://entropymine.com/jason/testbed/pngtrans/
If all you need is one level of transparency (like what you have with
GIF), try to set the GIMP's background color to white before saving.
This makes the created PNG display correctly in Netscape 4.x.


Comment 5 Raphaël Quinet 2001-10-23 11:24:41 UTC
Minor correction: This is indeed a bug in Netscape 4.x and not in
the Gimp, but in order to allow the PNG image to display (almost)
correctly in Netscape 4.x, the background color must be set to black,
not white.  NN4 replaces all black pixels by the background color if
the background color was specified in the PNG file.

Another (obvious) solution is to uncheck the "save background color"
box in the options of the PNG plug-in.
Comment 6 Bugzilla Maintainers 2004-04-01 23:44:57 UTC
The URL field has been removed from bugzilla.gnome.org. This URL was in the old URL field, and is being added as a comment so that the data is not lost. Please email bugmaster@gnome.org if you have any questions.

URL: 
http://rainbow.hn.org/bernhard/bpu-background.png