Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

libpng warning: iCCP: known incorrect sRGB profile #4320

Closed
wzdev-ci opened this issue Dec 8, 2015 · 9 comments
Closed

libpng warning: iCCP: known incorrect sRGB profile #4320

wzdev-ci opened this issue Dec 8, 2015 · 9 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Dec 8, 2015

resolution_fixed type_bug | by stiv


Libpng version 1.6 is throwing warnings: libpng warning: iCCP: known incorrect sRGB profile

A link describing the problem is here: https://wiki.archlinux.org/index.php/Libpng_errors

TL;DR: we need to remove the funky profiles with Imagemagik or such.

Not sure if all our PNGs are problematic or just bunches of them. Lots of warnings!
Exploring the use of Imagemagic to fix.


Issue migrated from trac:4320 at 2022-04-16 11:52:12 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 8, 2015

vexed changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 8, 2015

vexed commented


Well... Libpng-1.6 is more stringent about checking ICC profiles than previous versions. Since these warnings are more or less meaningless for us (ICC profiles), you can ignore the warning.

Or in other words, not sure it is worth redoing however many pngs just to shutup a meaningless warning for us compared to the bandwidth required to fix the pngs in question.

Perhaps when the Artdev guys finish up their work, we can just replace them all then?

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 3, 2016

Per commented


It is really annoying, it causes so much scrolling that useful errors are sometimes overlooked.

Quick fix: find data -name *.png -execdir mogrify {} ;

Unless there are objections, I will commit this to bugfixes soon. (Yes, this will cause all PNGs to be uncrushed.)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 3, 2016

stiv commented


Yeah,let's do this. A lot graphic apps are starting to recognize color profiles now so it actually matters.

It's worth putting in master also, IMHO.

As for the PNGs being uncrushed, this is good. We use them as texture maps, not for web display.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jan 3, 2016

vexed commented


Actually, no, not yet.

This will be a huge, huge commit.
This can be better solved with ripping out our data, and putting it into its own repo, then using git subtree or submodule to pull it in.
Also, need to wait for the release of 3.1.3 first IMO, since that has blockers.

@wzdev-ci
Copy link
Contributor Author

Cyp <cyp@...> changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Cyp <cyp@...> changed owner from `` to Cyp <cyp@wz2100.net>

@wzdev-ci
Copy link
Contributor Author

Cyp <cyp@...> changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

Cyp <cyp@...> committed [0]


In Warzone2100/warzone2100@0fde4c8:

#CommitTicketReference repository="" revision="0fde4c81152463389e906998f4590873d8058eb7"
Fix specific .png files which were causing libpng warnings.

libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB

Fixed with mogrify and then (re-)crushed.

Fixes #4320.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant