-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libpng: New version 1.6.23 #5362
Conversation
Warning: libpng 1.6 is strict about iCCp chunks being incorrect, solution is to fix the profile. On *nix ImageMagicks "convert" works on windows optiPNG.
neccesary for libpng 1.6.27 to work silently
Meh, I merged too fast and noticed too late that you made a typo in the version number :) 1.6.27 does not exist, what we have is 1.6.23. |
I fixed with 9bf3ee7 the bug that made libpng warnings treated as errors; they now raise a Godot warning instead:
|
Oops, sorry on the version number, I guess we just have to wait for 1.6.27 and be like ha! We had that moths ago! 😃 |
Well this is annoying. So is there a color profile that it will accept, or does everyone have to go through some rigmarole to remove the chunk for every new png? |
@rgrams I fixed all my problems with ImageMagicks mogrify tool (just by running |
I did some fixes to ScrollContainer some time ago, maybe it fixed it On Mon, Jul 4, 2016 at 4:05 PM, George Marques notifications@github.com
|
@rgrams I will do a PR in godot-docs shortly, explaining the warning and will give instructions to fix PNGs on all platforms hopefully. |
Could the warning message be made to specify which image it's having an issue with? |
I don't think so, at least not without modifying the libpng source code, but that's not something we should do. Those libpng16 warnings have been all over open source projects using PNGs for years, and have always been that unhelpful sadly; improving those warnings should be discussed directly upstream. Edit: On second thought, actually we might be able to intercept the warning and mention what file triggered it, that's worth looking into. |
@akien-mga Hmm will look into it, afaik libpng has no knowledge of the image source file in godot, it just reads the raw data and does its job. Although something of that sort could be done in |
For everyone searching the repo for the error message:
Here is a guide to fixing PNGs. |
Line 2350 in d463b6e
Is it legal to remove this if?
e: Denied here, I made a request: pnggroup/libpng#163 |
No. We don't touch upstream sources. |
Updated libpng to version
1.6.271.6.23Needed to fix iCCp chunk in a lot of pngs, since libpng 1.6 is more strict in this matter. See [1] [2] [3].
Projects will also need to fix their pngs if they have an incorrect iCC profile or will receive warnings like:
ERROR: _png_warn_function: iCCP: known incorrect sRGB profile
Will do a PR in the godot-docs repo about this, adding some documentation about the errors and fixing them.
fixes #3059, updates: #5248