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

@@ -7,7 +7,7 @@ gdkpixbuf = dependency('gdk-pixbuf-2.0', required : get_option('gdk-pixbuf'))
dependencies = [
dependency('gtk+-3.0'),
dependency('libturbojpeg'),
dependency('libpng', version : '>=1.5.4'),
dependency('spng', version : '>=0.7.0'),
dependency('pixman-1'),
libraw,
librsvg,