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

前端 未结 1 585
情书的邮戳
情书的邮戳 2020-12-18 23:33

I am trying to change the color of the cursor in TextField in Titanium android app. For that I created platform/android/res/values/ folder.

I placed the

相关标签:
1条回答
  • 2020-12-19 00:05

    As the warnings say, you have a bunch of PNG files with invalid color profiles. Libpng16 issues warnings about them. Your application treats warnings as errors.

    To work around this, you can do one or more of the following:

    • Use a PNG editor to remove the iCCP chunk from the PNG files listed in the error report, e.g., with ImageMagick's "convert -define png:exclude-chunk=iCCP,zCCP"

    • Use a PNG editor to remove all ancillary chunks, e.g., convert -strip

    • Downgrade your libpng to version 1.5.x (currently libpng-1.5.23)

    • Reinstall libpng-1.6.x (currently libpng-1.6.17) with "-DPNG_sRGB_PROFILE_CHECKS=-1"

    • Find out if there is a way to have your application treat warnings as warnings, not errors, and do that.

    0 讨论(0)
提交回复
热议问题