From 87abb3e853715f91c60a149986740b7d3f47977c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= Date: Sun, 10 May 2026 14:58:44 +0200 Subject: [PATCH] SDL2_image: use libjpeg and libpng instead of stb_image stb_image is a public domain implementation of several image decoders in a single C header file. SDL2_image includes a copy of it and uses it by default for JPEG and PNG. A comment in stb_image says "Primarily of interest to game developers and other people who can avoid problematic images and only need the trivial interface" Since the flatpak runtimes generally do include libjpeg and libpng, there is no reason to use a possibly limited implementation. It probably also receives less security testing than the de-facto standard libraries. --- SDL2/SDL2_image.json | 1 + 1 file changed, 1 insertion(+) diff --git a/SDL2/SDL2_image.json b/SDL2/SDL2_image.json index c0829fde..465a3114 100644 --- a/SDL2/SDL2_image.json +++ b/SDL2/SDL2_image.json @@ -1,6 +1,7 @@ { "name": "SDL2_image", "config-opts": [ + "-DSDL2IMAGE_BACKEND_STB=OFF", "-DSDL2IMAGE_DEPS_SHARED=OFF", "-DSDL2IMAGE_STRICT=ON" ],