FS#35363 - [gimp] Can't export in PNG format (libpng error: known incorrect sRGB profile)
Attached to Project:
Arch Linux
Opened by Stefano (masque) - Sunday, 19 May 2013, 15:10 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 03 October 2013, 13:41 GMT
Opened by Stefano (masque) - Sunday, 19 May 2013, 15:10 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 03 October 2013, 13:41 GMT
|
Details
Description:
When I try to export to a PNG file I obtain an error and a zero byte file. Additional info: * package version(s) gimp 2.8.4-2 libpng 1.6.2-3 * config and/or log files etc. libpng error: known incorrect sRGB profile Steps to reproduce: Open an image. Try to export to png. |
This task depends upon
Closed by Dave Reisner (falconindy)
Thursday, 03 October 2013, 13:41 GMT
Reason for closing: Not a bug
Additional comments about closing: See final comment
Thursday, 03 October 2013, 13:41 GMT
Reason for closing: Not a bug
Additional comments about closing: See final comment
I did this to workaround this problem, could you confirm it?
Menu - Image - Mode - Convert to Color Profile ...
Then just click "Convert" to convert it to "RGB workspace (sRGB built-in)"
Now exporting to PNG just works flawlessly.
I had reported this bug to GIMP and they told me to report it to Arch instead. Looks like someone already did. :)
https://bugzilla.gnome.org/show_bug.cgi
And to note: /usr/lib/gimp/2.0/plug-ins/file-png exists as it should.
I don't want to imagine what will happen when other distros such as debian or ubuntu will update libpng.
Hope it helps.
convert: iCCP: known incorrect sRGB profile `myimage.png' @ warning/png.c/MagickPNGWarningHandler/1830.
GIMP seems to be keeping the broken color profile from the image. Another workaround within GIMP is to just create a new image and copy/paste the contents from the broken one. Then you should be able to export without any trouble.
Note that this isn't a workaround, it's a correct fix for working with libpng 1.6