You are not logged in.

#1 2013-05-27 19:35:32

oelfe
Member
Registered: 2013-04-26
Posts: 8

[SOLVED] GIMP is unable to save an PNG

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

#2 2013-05-27 19:39:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] GIMP is unable to save an PNG

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

#3 2013-05-27 19:41:34

oelfe
Member
Registered: 2013-04-26
Posts: 8

Re: [SOLVED] GIMP is unable to save an PNG

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

#4 2013-05-27 19:49:48

Jodell
Member
Registered: 2009-10-09
Posts: 285

Re: [SOLVED] GIMP is unable to save an PNG

Are you using the 'Save As' or the 'Export To' function? You should use 'Export To'.

Offline

#5 2013-05-27 19:59:52

oelfe
Member
Registered: 2013-04-26
Posts: 8

Re: [SOLVED] GIMP is unable to save an PNG

Before I reinstalled this system, GIMP works perfectly. But now the PNG export doesn't work anymore.

Offline

#6 2013-05-27 20:47:05

adrianx
Member
From: South Africa
Registered: 2010-03-22
Posts: 70

Re: [SOLVED] GIMP is unable to save an PNG

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) smile

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 smile on a website (they are all from the same graphics guy).

Last edited by adrianx (2013-05-27 21:22:42)

Offline

#7 2013-05-27 21:26:40

Jodell
Member
Registered: 2009-10-09
Posts: 285

Re: [SOLVED] GIMP is unable to save an PNG

I can confirm this bug. Perhaps recompiling GIMP would fix it?

Offline

#8 2013-05-27 21:28:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] GIMP is unable to save an PNG

Offline

#9 2013-05-27 21:38:37

adrianx
Member
From: South Africa
Registered: 2010-03-22
Posts: 70

Re: [SOLVED] GIMP is unable to save an PNG

Thanks that works. I did something similar, but I used a different application (showFoto) to convert the colour profile. Silly me.

Offline

#10 2013-05-28 13:08:24

oelfe
Member
Registered: 2013-04-26
Posts: 8

Re: [SOLVED] GIMP is unable to save an PNG

Thanks that works!

Offline

#11 2013-11-22 17:42:29

felipe.facundes
Member
Registered: 2013-11-22
Posts: 1

Re: [SOLVED] GIMP is unable to save an PNG

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

#12 2013-11-23 00:31:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: [SOLVED] GIMP is unable to save an PNG

felipe.facundes wrote:

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

#13 2014-05-03 16:16:14

cki
Member
Registered: 2014-05-03
Posts: 1

Re: [SOLVED] GIMP is unable to save an PNG

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

#14 2014-05-03 16:18:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: [SOLVED] GIMP is unable to save an PNG

It's all explained in the wiki page I linked to.

Online

Board footer

Powered by FluxBB