SFML community forums

Help => Graphics => Topic started by: Edimartin on February 24, 2015, 04:33:28 pm

Title: JPEG error in Windows 64 bits
Post by: Edimartin on February 24, 2015, 04:33:28 pm
Hi. I am making a Game Engine for my Conclusion Work in College. To be multi-plataform I chose SFML to make Linux and Windows versions of the same game.

I create a simple plataform project to show the Game Engine features. I am using both JPEG and PNG files to create the game design.

In Linux 64 bits the game runs OK. In Windows I use the MinGW 32 and 64 for Windows 32 and 64 versions and I have this problem.

SFML return this error message in Windows 64 version:

Failed to load image from memory. Reason : JPEG format not supported (progressive)

Why?
Title: AW: Re: JPEG error in Windows 64 bits
Post by: eXpl0it3r on February 24, 2015, 04:44:01 pm
Not sure why it loads on Linux - are you using the same exact image? - but for the failing the reason is right there:

Failed to load image from memory. Reason : JPEG format not supported (progressive)

If you still don't get it: SFML doesn't support progressive JPEGs.
Title: Re: JPEG error in Windows 64 bits
Post by: Laurent on February 24, 2015, 04:47:07 pm
Progressive JPEG are supported in stb_image 2.0, which was updated in SFML very recently. So maybe he uses a very recent revision on Linux and not on Windows.
Title: Re: JPEG error in Windows 64 bits
Post by: eXpl0it3r on February 24, 2015, 05:13:51 pm
It has not yet (https://github.com/SFML/SFML/pull/777) been updated, just moved. :D
Title: Re: JPEG error in Windows 64 bits
Post by: Laurent on February 24, 2015, 06:42:39 pm
Ah ;D
Title: Re: JPEG error in Windows 64 bits
Post by: Edimartin on February 26, 2015, 08:02:45 pm
Thanks. I will try with the last SFML source code in Windows.

I am using Windows only to compile the last versions. I am developing the project in Linux 64.