Solved Image reading from resource file giving warning
-
Hi,
I have png images in resource file, i am reading from resource file.
I am getting the below mentioned warning
Unexpected state, Qt, libpng warning: iCCP: known incorrect sRGB profileHow can i resolve it?.
Thanks,
-
-
Hi,
Downloaded and Installed Magick, and used the
command :
magick "<source-path>\sample.png" "<destinatio-path>\sample.png".
Now if i use the image which is present in destination path, i am not getting the above mentioned warning.
Thanks,
-
Can anyone tell the meaning of
the iCCP chunk from the PNG image.
????
Thanks,
-
@Pradeep-Kumar said in Image reading from resource file giving warning:
iCCP chunk from the PNG image.
Its part of the format
http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.iCCP
Its the color profile area.the warning comes from app like photoshop on windows adding a profile that libpng consider not ok.
So it says to you "your image contains a known bad profile and i am warning you about it"
Its not a Qt thing but the pnglib that does it.Been there for some years now :;)
Read the links that @Ratzz provides.
I also looked at in at some point.
U can rebuild the png plugin and disable warning or use an image program to remove the (known) fault
profile.
Or simply ignore it. Colors looked fine for all RGB i tested.
Also after upgrading to 5.7 i have not seen it since.
Still use the same version of photoshop so something might have changed.
(or they fixed photoshop) :) -
Thanks for the answer.
command :
magick "<source-path>\sample.png" "<destinatio-path>\sample.png".
apart from the command is their any other way. to remove the chunks?.
Thanks,
-
@Pradeep-Kumar
there are tons of info on google
http://www.imagemagick.org/discourse-server/viewtopic.php?t=22444
But any method works as long as warning is removed. -
yep that command was one of the method where warnings was removed,
i observed in linux , the app crashed because of warning, will it treat it as error in some paltforms?.Thanks,
-
@Pradeep-Kumar
Hi
no it should always be a warning.
Should never cause a crash.
That must be something else. -
so hmmmm k , anyways thanks for the forum , and for the path to get the answers.
Thanks,
-
@Pradeep-Kumar
well thats the whole point of the forum :)
Good u like it.Can you give one of the pngs that give s warning ?
(postimage.org)I want to see if same profile as mine. ( from photoshop)
-
This post is deleted! -
how do you check the profile?.
can u explain and teach.Thanks,
-
@Pradeep-Kumar
Hi
I use photoshop. It has full color management dialogs.
-
the highlighted data is chuck in sample.png?
Thanks,
-
well its meta data. not the actual chunk but same information.