From c314efb1463f85d07c459ba46e1dd7651b91911f Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sat, 6 Sep 2025 18:47:01 +0100 Subject: [PATCH] Thumbnailing: use webp (support RGBA) and increase dims to 768 Signed-off-by: Olivier 'reivilibre --- phototrie/phototrie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phototrie/phototrie.py b/phototrie/phototrie.py index 7699b87..b5c93a5 100644 --- a/phototrie/phototrie.py +++ b/phototrie/phototrie.py @@ -17,9 +17,9 @@ def prepare_processable(search_in: str): for file in sorted(os.listdir(search_in)): if file.endswith(extension): full_path = search_in + "/" + file - thumb_path = tmp_dir + "/" + file + ".jpg" + thumb_path = tmp_dir + "/" + file + ".webp" image = Image.open(file) - image.thumbnail((512, 512)) + image.thumbnail((768, 768)) image.save(thumb_path) # also search for raw CR2