SFML community forums

Help => Graphics => Topic started by: INL on December 28, 2008, 06:09:20 am

Title: What image types does SFML support?
Post by: INL on December 28, 2008, 06:09:20 am
Hello, does anyone know which image types SFML supports (specifically)? And if it differs, which for opening, and which for saving?

Thanks!

INL
Title: What image types does SFML support?
Post by: Laurent on December 28, 2008, 11:22:53 am
Quote from: "http://www.sfml-dev.org/features.php"
Can load and save standard image formats : bmp, dds, jpg, png, tga, psd
Title: What image types does SFML support?
Post by: Kingdom of Fish on December 28, 2008, 11:08:14 pm
Code: [Select]
Failed to load image "media/anim(256x256)90f.png". Reason : PNG not supported: 8-bit only

There seems to be some exceptions?
[/code]
Title: What image types does SFML support?
Post by: Laurent on December 28, 2008, 11:29:30 pm
Yes, 8 bits only PNGs are an exception ;)
Title: What image types does SFML support?
Post by: Kingdom of Fish on December 31, 2008, 09:52:04 pm
Do sfml check for magicnumber or extension?
Title: What image types does SFML support?
Post by: Laurent on January 01, 2009, 12:07:50 pm
Image loading is done by the SOIL library (which uses stb_image), but I think it checks the file header, not the extension.