sdl2_image

Install command:
brew install sdl2_image

Library for loading images as SDL surfaces and textures

https://github.com/libsdl-org/SDL_image

License: Zlib

Development: Pull requests

Formula JSON API: /api/formula/sdl2_image.json

Formula code: sdl2_image.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.8.12
head ⚡️ HEAD

Revision: 2

Depends on:

jpeg-turbo 3.2.1 JPEG image codec that aids compression and decompression
jpeg-xl 0.13.0 New file format for still image compression
libavif 1.4.2 Library for encoding and decoding .avif files
libpng 1.6.59 Library for manipulating PNG images
libtiff 4.7.2 TIFF library and utilities
sdl2-compat 2.32.74 SDL2 compatibility layer that uses SDL3 behind the scenes
webp 1.6.0 Image format providing lossless and lossy compression for web images

Depends on when building from source:

autoconf 2.73 Automatic configure script builder
automake 1.20 Tool for generating GNU Standards-compliant Makefiles
libtool 2.6.2 Generic library support script
pkgconf 3.0.11 Package compiler and linker metadata toolkit

GitHub Packages downloads:

Last 30 days28,884
Downloads1,317,275
Analytics install events (30 days)2,061
Downloads / install events (30 days)14.0×

Source: GitHub Packages, fetched 2026-12-02T01:03:28Z. Analytics dates: 2026-11-02 to 2026-12-02. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,0573,36631,279
Installs (--HEAD)4536
Installs on Request1,4752,39226,259
Installs on Request (--HEAD)4536
Build Errors3