From 84a0496d635cad9c49ea76117f71aa7e3ac964ed Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 28 Mar 2021 14:07:34 +0200 Subject: Use imagemagick to create thumbnails instead of doing it ourselves. Better result and less memory usage because out of process memory reclaimed on exit --- include/AsyncImageLoader.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/AsyncImageLoader.hpp b/include/AsyncImageLoader.hpp index 5de9215..d485e3a 100644 --- a/include/AsyncImageLoader.hpp +++ b/include/AsyncImageLoader.hpp @@ -25,6 +25,8 @@ namespace QuickMedia { sf::Clock texture_applied_time; }; + bool create_thumbnail(const Path &thumbnail_path, const Path &thumbnail_path_resized, sf::Vector2i resize_target_size); + constexpr int NUM_IMAGE_LOAD_THREADS = 4; class AsyncImageLoader { -- cgit v1.2.3