Public Domain Image Loader
stb
single-file public domain (or MIT licensed) libraries for C/C++
Noteworthy:
- image loader: stb_image.h
- image writer: stb_image_write.h
- image resizer: stb_image_resize.h
- font text rasterizer: stb_truetype.h
- typesafe containers: stb_ds.h
Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts.
| library | lastest version | category | LoC | description |
|---|---|---|---|---|
| stb_vorbis.c | 1.20 | audio | 5563 | decode ogg vorbis files from file/memory to float/16-bit signed output |
| stb_image.h | 2.26 | graphics | 7762 | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC |
| stb_truetype.h | 1.24 | graphics | 5011 | parse, decode, and rasterize characters from truetype fonts |
| stb_image_write.h | 1.15 | graphics | 1690 | image writing to disk: PNG, TGA, BMP |
| stb_image_resize.h | 0.96 | graphics | 2631 | resize images larger/smaller with good quality |
| stb_rect_pack.h | 1.00 | graphics | 628 | simple 2D rectangle packer with decent quality |
| stb_ds.h | 0.65 | utility | 1880 | typesafe dynamic array and hash tables for C, will compile in C++ |
| stb_sprintf.h | 1.09 | utility | 1879 | fast sprintf, snprintf for C/C++ |
| stretchy_buffer.h | 1.04 | utility | 263 | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++ |
| stb_textedit.h | 1.13 | user interface | 1404 | guts of a text editor for games etc implementing them from scratch |
| stb_voxel_render.h | 0.89 | 3D graphics | 3807 | Minecraft-esque voxel rendering "engine" with many more features |
| stb_dxt.h | 1.10 | 3D graphics | 753 | Fabian "ryg" Giesen's real-time DXT compressor |
| stb_perlin.h | 0.5 | 3D graphics | 428 | revised Perlin noise (3D input, 1D output) |
| stb_easy_font.h | 1.1 | 3D graphics | 305 | quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc |
| stb_tilemap_editor.h | 0.41 | game dev | 4161 | embeddable tilemap editor |
| stb_herringbone_wa... | 0.7 | game dev | 1221 | herringbone Wang tile map generator |
| stb_c_lexer.h | 0.11 | parsing | 966 | simplify writing parsers for C-like languages |
| stb_divide.h | 0.93 | math | 430 | more useful 32-bit modulus e.g. "euclidean divide" |
| stb_connected_comp... | 0.96 | misc | 1049 | incrementally compute reachability on grids |
| stb.h | 2.37 | misc | 14454 | helper functions for C, mostly redundant in C++; basically author's personal stuff |
| stb_leakcheck.h | 0.6 | misc | 194 | quick-and-dirty malloc/free leak-checking |
| stb_include.h | 0.02 | misc | 295 | implement recursive #include support, particularly for GLSL |
... More
| version | 2.26.0 |
|---|---|
| license | MITMIT License |
| license | UnlicenseThe Unlicense |
| repository | https://pkg.cppget.org/1/stable |
| download | stb_image-2.26.0.tar.gz |
| sha256 | 8d59c09badc03eb1e19d67b41fa182e2e0b38785b3dbfadd2c20c563880d6d5c |
| project | stb |
|---|---|
| url | github.com/nothings/stb |
| package-url | github.com/build2-packaging/stb |
| sean+github@nothings.org | |
| package-email | lyrahgames@mailbox.org |
| topics | image loaderimage decodingfrom filefrom memory |
Reviews
| fail | 0 |
|---|---|
| pass | 1 |
Builds
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-freebsd14.1 |
| tgt config | freebsd_14-clang_18 |
| timestamp | 2026-09-13 12:06:52 UTC (01:38 minutes ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-gcc_14-ndebug_O3 |
| timestamp | 2026-09-12 21:20:15 UTC (14:48:14 hours ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-gcc_14-static_O3 |
| timestamp | 2026-09-12 21:20:14 UTC (14:48:16 hours ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-gcc_14-O3 |
| timestamp | 2026-09-12 21:19:28 UTC (14:49:02 hours ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-gcc_14 |
| timestamp | 2026-09-12 21:19:26 UTC (14:49:03 hours ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_22_libc++-static_O3 |
| timestamp | 2026-09-12 04:28:16 UTC (01 07:40:14 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_22_libc++ |
| timestamp | 2026-09-12 04:27:54 UTC (01 07:40:35 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_22_libc++-O3 |
| timestamp | 2026-09-12 04:27:16 UTC (01 07:41:14 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_22-O3 |
| timestamp | 2026-09-12 04:26:37 UTC (01 07:41:53 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_22-static_O3 |
| timestamp | 2026-09-12 04:25:59 UTC (01 07:42:31 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_22 |
| timestamp | 2026-09-12 04:25:15 UTC (01 07:43:15 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-gcc_16-ndebug_O3 |
| timestamp | 2026-09-11 13:34:39 UTC (01 22:33:51 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-gcc_16-O3 |
| timestamp | 2026-09-11 13:34:25 UTC (01 22:34:05 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-gcc_16-static_O3 |
| timestamp | 2026-09-11 13:33:59 UTC (01 22:34:30 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-gcc_16 |
| timestamp | 2026-09-11 13:33:55 UTC (01 22:34:35 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_fedora_43-gcc_15-bindist |
| timestamp | 2026-09-11 13:32:36 UTC (01 22:35:54 days ago) |
| result | warning (update) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-apple-darwin22.5.0 |
| tgt config | macos_13-clang_15.0 |
| timestamp | 2026-09-11 12:24:15 UTC (01 23:44:14 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18_libc++-static_O3 |
| timestamp | 2026-09-11 12:23:53 UTC (01 23:44:37 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18_libc++ |
| timestamp | 2026-09-11 12:23:22 UTC (01 23:45:08 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18_libc++-O3 |
| timestamp | 2026-09-11 12:23:13 UTC (01 23:45:16 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18-O3 |
| timestamp | 2026-09-11 12:22:44 UTC (01 23:45:45 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18-static_O3 |
| timestamp | 2026-09-11 12:22:33 UTC (01 23:45:57 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18 |
| timestamp | 2026-09-11 12:21:56 UTC (01 23:46:34 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-gcc_14-bindist |
| timestamp | 2026-09-11 11:51:58 UTC (02 00:16:31 days ago) |
| result | warning (update) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-freebsd15.0 |
| tgt config | freebsd_15-clang_19-static_O3 |
| timestamp | 2026-09-11 11:50:25 UTC (02 00:18:04 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-freebsd15.0 |
| tgt config | freebsd_15-clang_19-O3 |
| timestamp | 2026-09-11 11:49:58 UTC (02 00:18:31 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-freebsd15.0 |
| tgt config | freebsd_15-clang_19 |
| timestamp | 2026-09-11 11:49:47 UTC (02 00:18:42 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_21_libc++ |
| timestamp | 2026-09-11 11:38:45 UTC (02 00:29:44 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-clang_21 |
| timestamp | 2026-09-11 11:38:36 UTC (02 00:29:54 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_ubuntu_24.04-gcc_13-bindist |
| timestamp | 2026-09-11 11:37:34 UTC (02 00:30:56 days ago) |
| result | warning (update) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-gcc_15-O3 |
| timestamp | 2026-09-11 11:37:28 UTC (02 00:31:01 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_13-gcc_15 |
| timestamp | 2026-09-11 11:36:43 UTC (02 00:31:47 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-microsoft-win32-msvc14.3 |
| tgt config | windows_10-msvc_17 |
| timestamp | 2026-09-10 22:08:42 UTC (02 13:59:48 days ago) |
| result | success | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-gcc_13 |
| timestamp | 2026-09-10 12:47:04 UTC (02 23:21:26 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-microsoft-win32-msvc14.5 |
| tgt config | windows_10-msvc_18-static_O2 |
| timestamp | 2026-09-07 19:33:06 UTC (05 16:35:24 days ago) |
| result | success | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-microsoft-win32-msvc14.5 |
| tgt config | windows_10-msvc_18-O2 |
| timestamp | 2026-09-07 19:32:25 UTC (05 16:36:05 days ago) |
| result | success | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-microsoft-win32-msvc14.5 |
| tgt config | windows_10-msvc_18 |
| timestamp | 2026-09-07 19:32:22 UTC (05 16:36:08 days ago) |
| result | success | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-microsoft-win32-msvc14.5 |
| tgt config | windows_10-clang_21_msvc_18-static_O2 |
| timestamp | 2026-09-07 12:02:40 UTC (06 00:05:50 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-microsoft-win32-msvc14.5 |
| tgt config | windows_10-clang_21_msvc_18-O2 |
| timestamp | 2026-09-07 12:02:00 UTC (06 00:06:29 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-microsoft-win32-msvc14.5 |
| tgt config | windows_10-clang_21_msvc_18 |
| timestamp | 2026-09-07 12:01:44 UTC (06 00:06:46 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_ubuntu_26.04-gcc_15-bindist |
| timestamp | 2026-09-06 14:49:02 UTC (06 21:19:28 days ago) |
| result | warning (update) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-w64-mingw32 |
| tgt config | windows_10-gcc_15.2_mingw_w64-static_O2 |
| timestamp | 2026-09-04 11:46:08 UTC (09 00:22:21 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-w64-mingw32 |
| tgt config | windows_10-gcc_15.2_mingw_w64-O2 |
| timestamp | 2026-09-04 11:45:38 UTC (09 00:22:51 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-w64-mingw32 |
| tgt config | windows_10-gcc_15.2_mingw_w64 |
| timestamp | 2026-09-04 11:45:27 UTC (09 00:23:03 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-apple-darwin23.5.0 |
| tgt config | macos_14-gcc_14_homebrew-static_O3 |
| timestamp | 2026-09-01 12:52:25 UTC (11 23:16:04 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-apple-darwin23.5.0 |
| tgt config | macos_14-gcc_14_homebrew-O3 |
| timestamp | 2026-09-01 12:51:38 UTC (11 23:16:52 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-apple-darwin23.5.0 |
| tgt config | macos_14-gcc_14_homebrew |
| timestamp | 2026-09-01 12:50:51 UTC (11 23:17:39 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_fedora_44-gcc_16-bindist |
| timestamp | 2026-09-01 09:02:08 UTC (12 03:06:22 days ago) |
| result | warning (update) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-apple-darwin23.5.0 |
| tgt config | macos_14-clang_15.0-static_O3 |
| timestamp | 2026-08-31 10:49:55 UTC (13 01:18:35 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-apple-darwin23.5.0 |
| tgt config | macos_14-clang_15.0-O3 |
| timestamp | 2026-08-31 10:49:02 UTC (13 01:19:27 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |
| toolchain | public-0.18.1 |
|---|---|
| target | x86_64-apple-darwin23.5.0 |
| tgt config | macos_14-clang_15.0 |
| timestamp | 2026-08-31 10:48:14 UTC (13 01:20:16 days ago) |
| result | warning (update) | warning (test-installed) | log | rebuild |