I have warning after upgrade to 3.14 - Qt, libpng warning: iCCP: known incorrect sRGB profile

Discussion about recent product features & solutions!
5 posts • Page 1 of 1
yjsid939
Posts:13
Joined: Mon Dec 23, 2013 3:44 am

I have warning after upgrade to 3.14 - Qt, libpng warning: iCCP: known incorrect sRGB profile

Post by yjsid939 »

And after upgrade I have this error
=======================================================================================
WCCOAui (2), 2016.11.08 18:20:19.188, SYS, WARNING, 54, Unexpected state, Qt, libpng warning: iCCP: known incorrect sRGB profile
WCCOAui (2), 2016.11.08 18:20:19.208, CTRL, WARNING, 5/ctrl, Location of the following log entry:
=======================================================================================


All object which filled with pictures have same error.

I think png files which I have have imcompatible sRGB color profile so I tested with png file with RGB profile, in this case no warning.

But there are too many picture files to convert.

Please let me know how can I remove this problems.

Thank you

flindecke
Posts:69
Joined: Wed Jun 24, 2015 1:54 pm

Re: I have warning after upgrade to 3.14 - Qt, libpng warning: iCCP: known incorrect sRGB profile

Post by flindecke »

As long as i know it is a problem of the used library libpng which is used by Qt.

You can strip all of your ICC Profile from png files by using Imagequick.
See https://wiki.archlinux.org/index.php/Libpng_errors for a short description of the problem and the command for stripping the profile.

Hope this would help.

Andorhal
Posts:127
Joined: Wed Nov 12, 2014 8:04 am

Re: I have warning after upgrade to 3.14 - Qt, libpng warning: iCCP: known incorrect sRGB profile

Post by Andorhal »

Hello.

Frank is completely right.

Pls have a look at our FAQ here.

It explains background and gives examples how to identify/resolve the issue.

Our own PNGs had to be modified as well but since you can do it for all images with a single command line the effort to do so is very small.

Best regards,
Robert

yjsid939
Posts:13
Joined: Mon Dec 23, 2013 3:44 am

Re: I have warning after upgrade to 3.14 - Qt, libpng warning: iCCP: known incorrect sRGB profile

Post by yjsid939 »

Thank you everyone.

As you mentined, I converted all my images with IMAGEMAGIK.

And finally I removed all warnings.

Add one more tip.

To make batch job, I use dir *.png /b /s >> list.txt in command prompt windows.

then all png files list save to list.txt with path.

After that open list.txt and modify all lines like

mogrify "path1\\path2\\image.png" and save.

" is needed if path or file name include space then mogrify can't recognize whole infomaton.

After that rename list.txt -> conv.bat

and run this batch file in command window.

You can converting status ~~

Don't forget to backup your images before converting.


Thank you and have a nice day!

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: I have warning after upgrade to 3.14 - Qt, libpng warning: iCCP: known incorrect sRGB profile

Post by mkoller »

On Linux one would do:

find . -name \\*.png -print0 | xargs -0 mogrify

That recursively - starting from "." (current dir) - changes all files even those with blanks.

5 posts • Page 1 of 1