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 1377

Summary: SDL_image 1.2.11 corrupts png of PseudoClass type 8bit
Product: SDL_image Reporter: alien
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: unspecified   
Hardware: x86_64   
OS: Linux   
Attachments: Sample image
SDL_image-1.2.11-png_channels.patch

Description alien 2012-01-17 22:46:56 UTC
see https://bugs.mageia.org/show_bug.cgi?id=4175

i fear this may have been the problematic change: (unsure)
http://hg.libsdl.org/SDL_image/rev/ea460af4ceff
Comment 1 Sam Lantinga 2012-01-18 04:53:50 UTC
Created attachment 781 [details]
Sample image

AL13N

i think this is the one
Comment 2 alien 2012-01-18 14:21:26 UTC
Created attachment 785 [details]
SDL_image-1.2.11-png_channels.patch

when looking a the differences between a patch we carried in the 1.2.10 and the 1.2.11; i noted a difference in it, and after fixing that, it seemed to work.

since this is about a 256c png image it should be 1byte, not 3, thus this solves it for me.

thanks alot of the assistance. since i'm a mageia packager, i'm adding the patch to our SDL_image build.
Comment 3 Sam Lantinga 2012-01-19 20:20:17 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL_image/rev/7036dd36a22f