libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

15,855 views
Skip to first unread message

Guy Tavor

unread,
Nov 4, 2014, 1:45:27 AM11/4/14
to adt...@googlegroups.com
Hi,
Since upgrading to the new gradle / build-tools, we keep getting this message for resources in our project:

libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

Any idea what's wrong?

Can we safely ignore these?


Philip Bergqvist

unread,
Nov 4, 2014, 4:12:33 AM11/4/14
to adt...@googlegroups.com
It sounds like they can be ignored:
http://stackoverflow.com/a/26505946

Jake Wharton

unread,
Nov 4, 2014, 4:13:55 AM11/4/14
to adt...@googlegroups.com
It's metadata added by tools like Photoshop that isn't even honored by Android. Strip it.

brew install exiftool
find . -path '*src/main/res/*' -name '*.png' -exec exiftool -overwrite_original -all= {} \;

--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guy Tavor

unread,
Nov 4, 2014, 4:47:37 AM11/4/14
to adt...@googlegroups.com
Thanks Jake, Phillip.
G

Guy
scoompa


PGP Fingerprint: EA91 0989 4159 1707 406E 1FD5 0791 6FB0 BAD5 C179

--
You received this message because you are subscribed to a topic in the Google Groups "adt-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adt-dev/rjTQ_STR3OE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.

Csaba Kozák

unread,
Nov 4, 2014, 4:33:40 PM11/4/14
to adt...@googlegroups.com
Thanks Jake! I posted this info in the relevant issue.

Vaibhav Vishal

unread,
Dec 9, 2014, 12:36:50 AM12/9/14
to adt...@googlegroups.com
Even if we safely ignore this warning but for apps which have log of drawable resources, the build time increases unexpectedly.
During mergeResources task , warning message for each image takes lot of time.
Is there any way i can disable these warnings ? any build options ?

Csaba Kozák

unread,
Dec 9, 2014, 6:45:03 PM12/9/14
to adt...@googlegroups.com
Check out Jake's answer above.

Vaibhav Vishal

unread,
Dec 11, 2014, 1:28:11 AM12/11/14
to adt...@googlegroups.com

Jake's answer says that we should strip the images of all the metadata that is causing it.

I dont want to do this.. i only want the mergeResources to not give this warning and skip this warning without showing them on Gradle console and continue the build.
Is it possible without removing the metadata ?

Csaba Kozák

unread,
Dec 11, 2014, 2:19:53 AM12/11/14
to adt...@googlegroups.com
No.
Reply all
Reply to author
Forward
0 new messages