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

121 views
Skip to first unread message

Joe Bowbeer

unread,
Nov 12, 2015, 1:43:07 PM11/12/15
to adt-dev
Regarding the AAPT warning that many are seeing in their build logs because of an old sRGB profile that is not-uncommonly added by PhotoShop and which is stripped by AAPT anyway...

Which has been reported many times, e.g., Issues 77704, 78326, 78591, 97203, 160749, 177731, 182725, 190988

and was discussed on this list a year ago:

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

I recommend fixing the problem in aapt by enabling the option that was added in libpng 1.6.11 to skip the check that generates these warnings:

png_set_option(read_ptr, PNG_SKIP_sRGB_CHECK_PROFILE, PNG_OPTION_ON);

See Issue 77704 for more information.

Michal Bendowski

unread,
Nov 13, 2015, 5:55:51 AM11/13/15
to adt-dev
I don't understand enough about what's going on here to talk about the aapt fix, but in the next Gradle plugin version we will log this warning at INFO level, instead of WARNING, which means it won't be visible by default.

Michal

Joe Bowbeer

unread,
Nov 19, 2015, 2:38:26 PM11/19/15
to adt-dev
Suppressing these warnings by any means that is effective is fine with me -- though I think the "best" and most directed fix would be to add one line to aapt to tell libpng to skip the checks.

I upgraded to plugin 1.5.0 (is that the next version you were referring to?), but the messages are still there even though the format has changed slightly:

AAPT err(Facade for 665183978): ...image.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

Michal Bendowski

unread,
Nov 23, 2015, 11:54:11 AM11/23/15
to adt-dev
Yeah, the code paths are different depending on the version of build tools and we missed that initially. It will be fixed in the next version.

--
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/MSqDyQ8pdSQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages