aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-28 14:07:34 +0200
committerdec05eba <dec05eba@protonmail.com>2021-03-28 14:07:34 +0200
commit84a0496d635cad9c49ea76117f71aa7e3ac964ed (patch)
treebcfe55820d8ae164b122d990efcddbfd941b834e /include
parent50fba2bd585aa51f41d98f70afa4760fa03c92b0 (diff)
Use imagemagick to create thumbnails instead of doing it ourselves. Better result and less memory usage because out of process memory reclaimed on exit
Diffstat (limited to 'include')
-rw-r--r--include/AsyncImageLoader.hpp2
1 files changed, 2 insertions, 0 deletions
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 {