问题
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 ?
回答1:
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.
回答2:
I had the same problem with Android studio. Just clean the project and it should work.
回答3:
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.
回答4:
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 :
ImageOptim
ImageMagick
Trimage
回答5:
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.
回答6:
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.
回答7:
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.
https://stackoverflow.com/a/31497159
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