Skip to content
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

[PATCH] SDL_image causes "libpng warning: Interlace handling should be turned on when using png_read_image" when loading interlaced images #103

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 1.2.12
Reported for operating system, platform: Other, x86

Comments on the original bug report:

On 2015-12-26 14:39:18 +0000, Hans de Goede wrote:

Created attachment 2346
SDL_image-1.2.12-interlaced-png-warning-fix.patch

Hi,

When starting an app which uses SDL_image to load interlaced png-s with a recent libpng, the following message is printed to the terminal:

libpng warning: Interlace handling should be turned on when using png_read_image

Once per loaded png. The attached patch fixes this.

Note this patch is for the 1.2 branch, but the same likely applies to 2.0 / master.

Regards,

Hans

On 2017-09-13 08:32:24 +0000, Sylvain wrote:

Created attachment 2928
interlaced image

On 2017-09-13 08:33:59 +0000, Sylvain wrote:

Created attachment 2929
patch

Same patch for SDL2_image, updated to head.
It does not seem to hurt and fixes this warning message.

On 2017-09-13 08:35:52 +0000, Sylvain wrote:

and also:

https://stackoverflow.com/questions/22125146/how-to-fix-libpng-warning-when-reading-interlaced-png

On 2017-11-13 14:31:40 +0000, Jhon Merced wrote:

@hans also see this: https://www.internetvergelijken.nl

On 2018-01-15 16:24:13 +0000, brianbrowns wrote:

Interesting Jhon. Have you seen that? https://promocode.com.ph/

On 2018-02-07 22:21:17 +0000, Sam Lantinga wrote:

Fixed, thanks!
https://hg.libsdl.org/SDL_image/rev/71f0d661144f

On 2018-03-02 13:50:24 +0000, Jhon Merced wrote:

Seems that everything's fixed here. http://zanuidiscountcode.com/

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

No branches or pull requests

1 participant