SDL_image : Unsupported image format

I have some jpeg’s from camera, that doesn’t recognized by SDL_image :

Can’t load 12270005.jpg: Unsupported image format

identify for such jpeg is :

identify 12270005.jpg :

12270005.jpg JPEG 2048x1536 DirectClass 8-bit 1176kb 0.0u 0:01

Other viewers can display it .

I use this code

image = IMG_Load(“12270005.jpg”);
if ( image == NULL )
{
fprintf(stderr, “Can’t load %s: %s\n”, “12270005.jpg”, SDL_GetError());
return;
}

I have stock rh8 : SDL-1.2.4 , SDL_image-1.2.2

Any hints?

Thanks,

Ugh,

upgrade to SDL_image 1.2.3 helped :>> Change log >>

Pete Shinners - Thu Jun 20 10:05:54 PDT 2002

  • The JPEG loader can now load EXIF format JPEG images

hi
for jpeg support the sdl_image lib required the JPEG library.
here is ther url : http://www.ijg.org/

cu-------------------------------------
libsdl.de.vu ---- german gameprogramming site for the libsdl

----- Original Message -----
From: i.kuten@sam-solutions.net (I.S.Kuten)
Newsgroups: loki.open-source.sdl
To:
Sent: Monday, May 05, 2003 2:48 PM
Subject: [SDL] SDL_image : Unsupported image format

I have some jpeg’s from camera, that doesn’t recognized by SDL_image :

Can’t load 12270005.jpg: Unsupported image format

identify for such jpeg is :

identify 12270005.jpg :

12270005.jpg JPEG 2048x1536 DirectClass 8-bit 1176kb 0.0u 0:01

Other viewers can display it .

I use this code

image = IMG_Load(“12270005.jpg”);
if ( image == NULL )
{
fprintf(stderr, “Can’t load %s: %s\n”, “12270005.jpg”,
SDL_GetError());
return;
}

I have stock rh8 : SDL-1.2.4 , SDL_image-1.2.2

Any hints?

Thanks,