Image decoding for many popular formats for Simple Directmedia Layer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Sam Lantinga 168ceb577c Revert "Removed Generated zconf.h" 1 month ago
VisualC Updated copyright for 2021 11 months ago
VisualC-WinRT define DLL_EXPORT in MSVC project files to accommodate bug #5384 changes 11 months ago
Xcode added arm64 build to the webp decoder framework 5 months ago
Xcode-iOS/SDL_image.xcodeproj Fixed bug 4370 - tvOS Simulator devices not listed 3 years ago
acinclude added a customized tar.m4 under our acinclude directory: 8 months ago
debian Updated copyright for 2021 11 months ago
external external/jpeg-9d: tweak android jconfig.h to avoid macro redefinitions. 3 months ago
.gitignore CMake fixes for Windows build 8 months ago
Android.mk external libs: update libjpeg to latest 9d release. 1 year ago
CHANGES.txt fixed typo in changelog 1 year ago
CMakeLists.txt - updated zlib CMakeLists.txt to fix https://github.com/madler/zlib/issues/218 5 months ago
IMG.c Updated copyright for 2021 11 months ago
IMG_ImageIO.m Fixed iOS build warnings 4 years ago
IMG_UIImage.m Cleaned up whitespace for the 2.0.0 release 9 years ago
IMG_WIC.c Updated copyright for 2021 11 months ago
IMG_bmp.c IMG_bmp.c: Add support for 24 bits ICO/CUR images 4 months ago
IMG_gif.c Really fix https://github.com/libsdl-org/SDL_image/issues/180 4 months ago
IMG_jpg.c Updated copyright for 2021 11 months ago
IMG_lbm.c Updated copyright for 2021 11 months ago
IMG_pcx.c Fix out-of-bounds read in PCX loader. 4 months ago
IMG_png.c define MINIZ_LITTLE_ENDIAN based on SDL_BYTEORDER. 4 months ago
IMG_pnm.c Updated copyright for 2021 11 months ago
IMG_svg.c SVG: added note about Watcom builds and SDL math functions. 9 months ago
IMG_tga.c Updated copyright for 2021 11 months ago
IMG_tif.c IMG_tif.c: prepare for libtiff-4.3.0. 8 months ago
IMG_webp.c Updated copyright for 2021 11 months ago
IMG_xcf.c Updated copyright for 2021 11 months ago
IMG_xpm.c Updated copyright for 2021 11 months ago
IMG_xv.c Updated copyright for 2021 11 months ago
IMG_xxx.c Updated copyright for 2021 11 months ago
LICENSE.txt Make the license identifiable by GitHub 8 months ago
Makefile.am build: Use POSIX 1003.1-2001 tar archives for make dist 8 months ago
Makefile.in regenerated autofoo. 8 months ago
Makefile.os2 fix typo in os/2 makefile 1 year ago
README-emscripten.txt Update emscripten building instructions 3 years ago
README.txt Make the license identifiable by GitHub 8 months ago
SDL2_image.pc.in Fixed SDL_image header location 10 years ago
SDL2_image.spec Make the license identifiable by GitHub 8 months ago
SDL2_image.spec.in Make the license identifiable by GitHub 8 months ago
SDL_image.h Updated copyright for 2021 11 months ago
aclocal.m4 regenerated autofoo. 8 months ago
autogen.sh Fixed bug #427 15 years ago
compile autotools update. 9 months ago
config.guess Update config.guess and config.sub from mainstream. 5 months ago
config.sub updated config.sub from mainstream. 3 months ago
configure fixed linkage: used to always link with -ljpeg 8 months ago
configure.ac fixed linkage: used to always link with -ljpeg 8 months ago
depcomp autotools update. 9 months ago
gcc-fat.sh Updated gcc-fat.sh for Mac OS X 10.8 9 years ago
install-sh autotools update. 9 months ago
ltmain.sh Ozkan Sezer to slouken 11 years ago
miniz.h miniz.h: better readability in pnghdr writing code, minor warning fixes 4 months ago
missing autotools update. 9 months ago
nanosvg.h fixed os2 watcom builds (again.) 9 months ago
nanosvgrast.h Updated to the latest version of nanosvg 9 months ago
showanim.c Updated copyright for 2021 11 months ago
showimage.c showimage: Add a -quit option 5 months ago
version.rc Updated copyright for 2021 11 months ago

README.txt


SDL_image 2.0

The latest version of this library is available from:
http://www.libsdl.org/projects/SDL_image/

This is a simple library to load images of various formats as SDL surfaces.
This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG,
TGA, TIFF, and simple SVG formats.

API:
#include "SDL_image.h"

SDL_Surface *IMG_Load(const char *file);
or
SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
or
SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type);

where type is a string specifying the format (i.e. "PNG" or "pcx").
Note that IMG_Load_RW cannot load TGA images.

To create a surface from an XPM image included in C source, use:

SDL_Surface *IMG_ReadXPMFromArray(char **xpm);

An example program 'showimage' is included, with source in showimage.c

JPEG support requires the JPEG library: http://www.ijg.org/
PNG support requires the PNG library: http://www.libpng.org/pub/png/libpng.html
and the Zlib library: http://www.gzip.o