[SDL] Bug found in SDL_Image

Mattias Engdegård f91-men at nada.kth.se
Sun Jun 10 07:44:50 PDT 2001


>I found a bug in SDL_Image.  To reproduce it, call IMG_Load with the
>PNG file located at the following URL:
>
>http://chat.carleton.ca/~odagenai/pngbug.zip  (20 k)
>
>Immediately after IMG_Load, I called SDL_SaveBMP and got the other
>file in that archive.  Notice, with your favorite image viewer/editor,
>that the BMP doesn't look like the PNG.

I cannot reproduce it (running on a Sun). Please verify that it is indeed
the png loader that is in error and not the bmp saver (try the tga saver
at ftp://ptah.lnf.kth.se/pub/misc/savetga.c). Also verify that the
palette after loading contains a perfect greyscale (so that
r,g,b[i] == i, i=0..255)




More information about the SDL mailing list