Hey, I think they may be a bug with sf::Image.
#include "SFML/Graphics.hpp"
int main(int argc, char *argv[])
{
puts("Loading items.jpg");
sf::Image img;
img.LoadFromFile("data/images/items.jpg")? puts("Okay"): puts("Oops");
}
Output:
Loading items.jpg
Failed to create image, its internal size is too high (256x128)
Oops
I'm on 10.5.7, linking with SFML-1.5 release.
Where it happens:
Original image (PNG + Alpha, 192x96 px),
Alpha-stripped PNG file,
JPG conversion of the file,
BMP conversion of the file,
JPG conversion of a resized version of the latter JPG file (forming a 192*192 image).
Where it doesn't happen:
data/images/icon.bmp: PC bitmap data, Windows 3.x format, 32 x 32 x 32
Edit:
I've posted the C++ source files and sample images in a tar.bz2 archive here:http://dl.free.fr/pMt4OjceoEdit2:
Everything works well on win32-mingw or gnu/linux-gcc...