The following warning keeps arising in my Xamarin cross platform PCL project:
iccp:Not recognizing known sRGB profile that has been edited
What should I do ?
If you have image magick installed http://www.imagemagick.org/script/command-line-processing.php
find . -name "*.png" -print -exec convert "{}" "{}" ";"
cleaned up the files, and made them smaller in the process.
I had the same problem with Android studio. Just clean the project and it should work.
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 metada.
And that fixed.
This warning is due to the unwanted bytes or metadata in the image file. It is mostly arises due to the update of libpng inside of the Android SDK.
Try these tools to delete metadata from corresponding images :
had the same problem. trying to remove and re-add the same images showed in the console that another file had an invalid name (with "-" in the name). Fixing the other file's name, solved my issue.
Since most answers are for Linux here is a windows solution:
Download ImageMagick and run the folloing command in cmd:
magick mogrify -format png *.png
and it will convert all png in the folder you are in into png without the problems.
What solved my problem is to remove the doubted one image(Which is large in size & it's been store in all Drawable folders of my app module.)
I have tried by Changing build tools , removing AppCompat lib.
Also Check that whether any of your image is not opening in Android Editor by double clicking on the Image from drawable folder.
If this load problem occurs, It means you have to remove this image from all folders and try by ReAdding it after Renaming the same image.
Or there's is an accepted answers available if it can help you.
Which will help you Optimize your image in all neccessary manner.
来源:https://stackoverflow.com/questions/27395466/iccpnot-recognizing-known-srgb-profile-that-has-been-edited