iccp:Not recognizing known sRGB profile that has been edited

25.4k views Asked by At

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 ?

7

There are 7 answers

0
Andrea Inglese On

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.

0
Yksh On

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.

2
Marc On

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.

0
Kobbe On

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.

0
Yksh On

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

0
Kaspis245 On

I had the same problem with Android studio. Just clean the project and it should work.

0
Sagar Shah On

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.