Grayscale PNG


I’m trying to import an 8-bit grayscale PNG with SDL_Image, but I get
only a red and green image. Displaying the png with various other
graphics software works as expected. I am using a 32 bit display
surface. Converting the image into a .gif and loading it also works

Am I doing something wrong or is there a bug in the library?

Thanks in advance,

Christian Reitwiessner