# Can SFML load anything other than RGBA8888? (RGBA4444, RGB565, etc.)

I can't see this mentioned in the documentation. Am I missing something obvious? Or does SFML really give you no option, forcing everything to be loaded as RGBA8888?

Searches on Google and the SFML forums have been unproductive.

• I think I remeber beeing able to load other formats too. Do you have any particular code snippet which results in an error? – floAr Sep 13 '13 at 11:00
• No, I do not. I remember doing some research and working with code, and either finding nothing or finding a way I thought would work, but when attempting it the memory usage was identical either way. I will try again shortly. – Carter81 Sep 13 '13 at 12:02
• You might need to check if SFML can compress your RGBA8888 images on loading. Of course that means longer loading times and usually worse compression quality, but at least that is something to get you started. – Kromster says support Monica Sep 16 '13 at 5:18

SFML, at least as of version 2 and as of this writing, uses stb_image (available here) to load image data, except on Android platforms. You can verify this by checking the source (Image.cpp and ImageLoader.cpp in particular).
Most of the documentation for stb_image is in the header file; SFML's particular version of it is here (be warned: it is large). However, while the header comments do point out some limitations for particular file formats, there's nothing in there that seems to imply RGBA8888 only (although for the PNG format, it sounds like you can only have 8-bit channels so RGBA4444 is probably out).