libsdl-org/SDL_image

Image decoding for many popular formats for Simple Directmedia Layer.

976

stars

1,999

commits

C

primary language

Sep 4, 2026

updated

sdl2
sdl-image

README

SDL_image 3.0

This is a simple library to load images of various formats as SDL surfaces. It can load BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PPM/PGM/PBM), QOI, TGA, XCF, XPM, and simple SVG format images. It can also load AVIF, JPEG-XL, TIFF, and WebP images, depending on optional libraries.

The latest version of this library is available from GitHub: https://github.com/libsdl-org/SDL_image/releases

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)

Contributors

(top 30 of 66)

slouken

972 commits

sezero

411 commits

madebr

301 commits

smcv

56 commits

libsdl-org/SDL_image

Image decoding for many popular formats for Simple Directmedia Layer.

976

stars

1,999

commits

C

primary language

Sep 4, 2026

updated

sdl2
sdl-image

README

SDL_image 3.0

This is a simple library to load images of various formats as SDL surfaces. It can load BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PPM/PGM/PBM), QOI, TGA, XCF, XPM, and simple SVG format images. It can also load AVIF, JPEG-XL, TIFF, and WebP images, depending on optional libraries.

The latest version of this library is available from GitHub: https://github.com/libsdl-org/SDL_image/releases

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)

Contributors

(top 30 of 66)

slouken

972 commits

sezero

411 commits

madebr

301 commits

smcv

56 commits

Languages

C

88.2%

C++

7.3%

Perl

1.5%

CMake

1.5%

Python

1.1%