Use spng to load thumbnails

Speed matters here, and this makes us about 20 percent faster
at loading large directories.

Moreover, libpng's PNG_ALPHA_BROKEN is indeed broken.

Thumbnails have a fairly fixed format, so there are very few practical
corner cases that could have been missed.
This commit is contained in:
2021-11-12 10:37:02 +01:00
parent afc08df234
commit 21b110a7d6
3 changed files with 106 additions and 115 deletions

View File

@@ -18,7 +18,7 @@ a package with the latest development version from Archlinux's AUR.
Building and Running
--------------------
Build dependencies: Meson, pkg-config +
Runtime dependencies: gtk+-3.0, pixman-1, shared-mime-info, libpng>=1.5.4,
Runtime dependencies: gtk+-3.0, pixman-1, shared-mime-info, spng>=0.7.0,
libturbojpeg, LibRaw (optional), librsvg-2.0 (optional),
gdk-pixbuf-2.0 (optional)