SDL_image 2.0

SDL_image 1.2
   Sam Lantinga and Mattias Engdegård

Documentation: and on this site.


Mercurial Repository:

Runtime Binaries:
   Windows (32-bit Windows) (64-bit Windows)
   Mac OS X
      Please contact your distribution maintainer for updates.

Development Libraries:
   Windows (Visual C++ 32/64-bit)
      SDL2_image-devel-2.0.2-mingw.tar.gz (MinGW 32/64-bit)
   Mac OS X
      Please contact your distribution maintainer for updates.
   iOS & Android
      Projects for these platforms are included with the source.

   The latest stable release of SDL 2.0

Runs on:
   All platforms supported by SDL

   SDL_image is an image file loading library.
It loads images as SDL surfaces and textures, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, SVG, TGA, TIFF, WEBP, XCF, XPM, XV

As of SDL_image 1.2.5, JPEG, PNG, TIFF, and WEBP image loading libraries are dynamically loaded, so if you don't need to load those formats, you don't need to include those shared libraries. libpng depends on libz, and libtiff depends on both libz and libjpeg.

   Unpack and build. Run "showimage imagefile" to display an image using the library.


 * Added simple SVG image support based on Nano SVG
 * Updated external libraries jpeg-9b, libpng-1.6.32, libwebp-0.6.0, tiff-4.0.8 and zlib-1.2.11
 * Fixed security vulnerability in XCF image loader
 * Added optional support for loading images using Windows Imaging Component
 * Added libpng save support for much smaller 8-bit images
 * Added JPG save support when built with jpeglib: IMG_SaveJPG() and IMG_SaveJPG_RW()

 * Fixed image colorspace issue on iOS and Mac OS X
 * Fixed support for transparency in XPM files
 * Fixed building JPEG support on Android
 * Added support for building for Windows RT and Windows Phone
 * Fixed memory leak in webp image loading
 * Fixed loading BMP files with large BITMAPINFOHEADER structures
 * Fixed building with libpng 1.4

 * Updated for SDL 2.0
 * Fixed bug setting colorkey for indexed PNG images
 * Added support for alpha and lossless WEBP images

 * Fixed regression in 1.2.11 loading 8-bit PNG images with libpng

 * SDL_image is now under the zlib license
 * SDL_image binaries have been built with the following libraries:
   JPEG v8d
   libpng 1.5.7
   libwebp 0.1.3
   tiff 4.0.0
   zlib 1.2.5
 * SDL_image framework on OSX is built for Intel 10.5 and newer,
   PowerPC binaries can be built by modifying the Xcode project
 * Fixed loading 8-bit PNG images on Mac OS X
 * Added WEBP image support
 * Fixed compiling with libpng 1.4 and 1.5
 * Added to build on the Android platform
 * Fixed loading HAM6 images with stencil mask
 * Fixed bug loading 15 and 16 bit BMP images

Thanks to these people and many others for their help on this release:
 Mark Tucker, Thomas Klausner, Michael Bonfils

* Fixed bug loading multiple images

* Fixed alpha premultiplication on Mac OS X and iPhone OS
* Fixed checking for IMG_Init() return value in image loaders

* Added support for uncompressed PCX files
* Added IMG_Init()/IMG_Quit() to prevent constantly loading and unloading DLLs
* Added support for ICO and CUR image files
* Added ImageIO loading infrastructure for Mac OS X
* Added UIImage loading infrastructure for iPhone / iPod Touch