iccp:Not recognizing known sRGB profile that has been edited

24,862

Solution 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.

Solution 2

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

Solution 3

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

Solution 4

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.

Solution 5

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.

Share:
24,862

Related videos on Youtube

Balaji
Author by

Balaji

I interested to learn new technologies.

Updated on July 09, 2022

Comments

  • Balaji
    Balaji almost 2 years

    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 ?

    • Alberto Estrella
      Alberto Estrella over 9 years
      I've the same issue since installed Xamarin.Android.Support.v7 (v21) from nuget. Try installing a previous version (v20), it may help.
    • Diego
      Diego over 9 years
      I am experiencing the same problem on a Xamarin Android project using Xamarin.Forms.Maps. I tried different version of the Support lib with the same result. Please help.
    • Jesse W at Z - Given up on SE
      Jesse W at Z - Given up on SE over 9 years
    • Rohit Vipin Mathews
      Rohit Vipin Mathews about 9 years
    • M. Usman Khan
      M. Usman Khan over 8 years
      rebuild project worked for me
  • prinsJoe
    prinsJoe over 8 years
    Do you plug it in just like that? Like say my file's name is "image" Would I plug into terminal (after download imagemagick) "image.png"-print-exec convert "{}""{}"";" just like that? Or is there more to be done? (Forgive my noob-i-ness)
  • Giszmo
    Giszmo over 8 years
    the command find . -name "*.png" -print -exec convert "{}" "{}" ";" does on the whole folder plus sub-folders what convert image.png image.png would do on just image.png. find finds stuff with -name = *.png, -prints it and -executes the command convert with its findings ({}) as parameter twice.