We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3214

Summary: [PATCH] SDL_image causes "libpng warning: Interlace handling should be turned on when using png_read_image" when loading interlaced images
Product: SDL_image Reporter: Hans de Goede <jwrdegoede>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: brianbrowns123, jhonmerced5, sylvain.becker
Version: 1.2.12   
Hardware: x86   
OS: Other   
Attachments: SDL_image-1.2.12-interlaced-png-warning-fix.patch
interlaced image
patch

Description Hans de Goede 2015-12-26 14:39:18 UTC
Created attachment 2346 [details]
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
Comment 1 Sylvain 2017-09-13 08:32:24 UTC
Created attachment 2928 [details]
interlaced image
Comment 2 Sylvain 2017-09-13 08:33:59 UTC
Created attachment 2929 [details]
patch

Same patch for SDL2_image, updated to head.
It does not seem to hurt and fixes this warning message.
Comment 4 Jhon Merced 2017-11-13 14:31:40 UTC
@Hans also see this: https://www.internetvergelijken.nl
Comment 5 brianbrowns 2018-01-15 16:24:13 UTC
Interesting Jhon. Have you seen that? https://promocode.com.ph/
Comment 6 Sam Lantinga 2018-02-07 22:21:17 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_image/rev/71f0d661144f
Comment 7 Jhon Merced 2018-03-02 13:50:24 UTC
Seems that everything's fixed here. http://zanuidiscountcode.com/