Bug 336172 - Can't save to PNG
Summary: Can't save to PNG
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-PNG (show other bugs)
Version: 4.0.0
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL: PNG
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-13 13:08 UTC by Rafael Linux User
Modified: 2017-08-01 20:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2014-06-13 13:08:41 UTC
Digikam editor (ShowPhoto) don't let me save in PNG format. It give me an error window saying is not able to save the image. After a lot of headaches thinking problem was related with  permissions, I discover that changing my default format to other than PNG, I got to save my photos or export them.

Reproducible: Always

Steps to Reproduce:
1.Choose PNG as default image format to save in Digikam configuration
2.Select a photo in Digikam and press F4
3.Do some change to the photo
4.Save as new version or export to PNG format
Actual Results:  
Digikam show a window, saying is not able to save your image to "path .... name".

Expected Results:  
Save image in PNG format.

This same issue appears as fixed in version 1.6.0
Comment 1 caulier.gilles 2014-06-13 13:24:58 UTC
Not reproducible here with 4.1.0

FileSaveas, select PNG in combobox, filename extension is changed automatically. Validate dialog, and all work fine...

run digiKam through a console following instructions from "For hangs out or dysfunctions" section, to see debug traces  :

http://www.digikam.org/contrib

Gilles Caulier
Comment 2 Rafael Linux User 2014-06-16 07:53:35 UTC
I dont know if this is sufficiente for you ... (extract from gdb on PNG error when saving). I must be clear that there is no crash, only an window telling can't save to PNG.

[Thread 0x7fff3dffb700 (LWP 8364) exited]
[New Thread 0x7fff3dffb700 (LWP 8395)]
[New Thread 0x7fff717fa700 (LWP 8396)]
libpng error: known incorrect sRGB profile
digikam(8312)/digikam (core) Digikam::EditorCore::slotImageSaved: error saving image ' /home/rafael/smb4k/ZUJAR/apnt/Luz/comun/Recursos_para_Desarrollo/Imagenes_Repositorio_Dlocal/FOTOS/Azuaga (conjunto y parroquia)/EditorWindow-HO8312.digikamtempfile.PNG
Comment 3 caulier.gilles 2014-06-16 08:07:06 UTC
It sound like editor cannot complete saving on temporary file during save image operation.

This file system is a shared samba FS. 

Can you try a local mounted FS to see if it's reproducible too ?

Gilles Caulier
Comment 4 Rafael Linux User 2014-06-17 09:05:03 UTC
No. Unluckily is not FS related. Same problem working with local files.

:(
Comment 5 Rafael Linux User 2014-06-17 09:07:00 UTC
I must remember that there is no problem with JP2, TIFF or JPG formats.
Comment 6 caulier.gilles 2014-06-17 09:09:14 UTC
Oh, i have not read the previous trace correctly :

==> libpng error: known incorrect sRGB profile

Your ICC color profile assigned to the image is not accepted by libpng used in background to process PNG IO.

Sound like a bug in libpng...

Gilles Caulier
Comment 7 Rafael Linux User 2014-06-17 17:08:21 UTC
But I can't understand why. I think (I cant test it now) that I can save
with that ICC profile from GIMP and Krita to PNG.

I'll let you know tomorrow about that point.

Thank you


2014-06-17 11:09 GMT+02:00 Gilles Caulier <caulier.gilles@gmail.com>:

> https://bugs.kde.org/show_bug.cgi?id=336172
>
> --- Comment #6 from Gilles Caulier <caulier.gilles@gmail.com> ---
> Oh, i have not read the previous trace correctly :
>
> ==> libpng error: known incorrect sRGB profile
>
> Your ICC color profile assigned to the image is not accepted by libpng
> used in
> background to process PNG IO.
>
> Sound like a bug in libpng...
>
> Gilles Caulier
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
>
Comment 8 Rafael Linux User 2014-06-18 10:57:42 UTC
Well, I tried to save PNG file from Krita with embedded sRGB profile ... and it failed!!!. If I choose in the PNG save dialog window to not embed the sRGB profile, all its fine. So I must find out now what it is failing here.  : (

Thank you for your deduction, Gilles
Comment 9 Rafael Linux User 2014-06-18 10:58:30 UTC
It's not a Digikam related issue.
Comment 10 Rafael Linux User 2014-06-18 11:12:31 UTC
Unable to export to .png - libpng error: known incorrect sRGB profile 
https://bugzilla.gnome.org/show_bug.cgi?id=721135