You are not logged in.
Hello,
when I try to save an PNG within GIMP I get the following message:
Saving '/home/alex/test.png' failed:
Error while saving '/home/alex/test.png'. Could not save image.
This is my commandline output:
libpng error: known incorrect sRGB profile
(file-png:5692): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)
I reinstalled gimp and deleted my profile, but it didn't work.
Does anyone have the same problem?
Greetings
Alex
Last edited by oelfe (2013-05-28 13:08:55)
Offline
Are you using the package form the repos?
https://bbs.archlinux.org/viewtopic.php?pid=1270253
Also https://bbs.archlinux.org/viewtopic.php?id=162947
Last edited by karol (2013-05-27 19:39:47)
Offline
Sry, I forget this information; I use the package from extra.
[alex@gaia ~]$ pacman -Ss gimp | grep installed
extra/gimp 2.8.4-2 [installed]
[alex@gaia ~]$ pacman -Ss libpng | grep installed
extra/libpng 1.6.2-3 [installed]
The system was installed last week and the user profile is completely fresh.
Last edited by oelfe (2013-05-27 19:47:11)
Offline
Are you using the 'Save As' or the 'Export To' function? You should use 'Export To'.
Offline
Before I reinstalled this system, GIMP works perfectly. But now the PNG export doesn't work anymore.
Offline
I've been having the same problem for a while now, since the libpng update a couple of weeks ago.
The day before the update, I was able to open a png, apply changes to compression, interlacing, etc., and export it to the same filename, overwriting the original. (Not the best workflow, I know)
After the update, the export would just simply blank out (0KB) the original file and give the same error message.
libpng error: known incorrect sRGB profile
Here's an example of a png file that does not work - https://dl.dropboxusercontent.com/u/937 … rabian.png (107 KiB)
My workaround was to convert the colour profile to Adobe RGB, open it in Gimp and convert it back(?) to sRGB.
It doesn't seem to happen with every png though, just mostly the ones that I needed for actual work on a website (they are all from the same graphics guy).
Last edited by adrianx (2013-05-27 21:22:42)
Offline
I can confirm this bug. Perhaps recompiling GIMP would fix it?
Offline
Offline
Thanks that works. I did something similar, but I used a different application (showFoto) to convert the colour profile. Silly me.
Offline
Thanks that works!
Offline
English:
Export as psd, then use the command: convert imagem.psd screenshot.png. Super simple.
The problem is in xcf extension that past updates gimp is in error. Moreover, the free extents are almost no support, including PNG, the fault is not the libpng. Then appeal to. Psd. Then convert via the command. Super simple.
Português:
Exporte como .psd, depois use o comando: convert imagem.psd imagem.png. Super simples.
Japon:
。PSDとしてエクスポートし、次のコマンドを使用します。imagem.psdのscreenshot.pngを変換します。超簡単。
Offline
English:
Export as psd, then use the command: convert imagem.psd screenshot.png. Super simple.The problem is in xcf extension that past updates gimp is in error. Moreover, the free extents are almost no support, including PNG, the fault is not the libpng. Then appeal to. Psd. Then convert via the command. Super simple.
Português:
Exporte como .psd, depois use o comando: convert imagem.psd imagem.png. Super simples.Japon:
。PSDとしてエクスポートし、次のコマンドを使用します。imagem.psdのscreenshot.pngを変換します。超簡単。
First, you say it's simpler to export and convert rather than just strip the color profile? I don't think so.
Second, the problem has nothing to do with xcf extension. It's new behavior in libpng 1.6.
Third, please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.22
More information about this problem: https://wiki.archlinux.org/index.php/Libpng_errors
Online
How do you convert the color profile? Can GIMP do that?
While trying to figure that out I found another alternative: Use imagemagick's convert command in Terminal:
$ convert file.xcf file.png
Offline
It's all explained in the wiki page I linked to.
Online