when including .png converted with Photoshop CS6 to grayscale I get a warning "
warning: pdflatex> libpng warning: iCCP: known incorrect sRGB profile"
to be precise, I get 36 of this warnings ;-)
what's the problem with these .png?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
The newest libpng update (1.6.2 I believe?) has stricter rules about iCCP and will print this warning every time it finds a png that is broken. This warning can be ignored. Fixes would include:
In the end this is a problem that should be fixed by the maintainer of the code.
Script that would change all .png files in the current directory:
for f in $(find . -type f -name "*.png") do echo "Processing $f ..." convert $f -strip $f done
I found a workaround that may help.
I downloaded the ImageOptim software: https://imageoptim.com/ (Free)
and went to the folder Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded and drag the images into the imageoptim and it deleted the metadata.
And that fixed.
I am a Graphic Designer (not a coder so please excuss my ignorance) who was asked to save the image from Photoshop without sRGB profile to avoid this warning message by one of my colleagues. The simplest solution I found is to: 'Save for Web' from Photoshop giving you far more options when saving a PNG than simply 'Save As' - within the addtional options you can simply untick the box for embeding the PNG with sRGB profile. Hope this is of some help to someone, it worked for us.