summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-06-19 21:52:32 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-06-19 21:52:32 +0200
commit65dba564dded902ae8103e5f5a6dc5d64e4fb1a0 (patch)
treef2b3907ae889fc575c81d0136a2e66c7e9ed2007 /bin
parent9aeef7814ce86bba8d22e9f6c3903c280b0d1732 (diff)
fix handling of existing CR2 previews
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pyggle3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pyggle b/bin/pyggle
index 5f41b27..a2e3348 100755
--- a/bin/pyggle
+++ b/bin/pyggle
@@ -370,9 +370,10 @@ class Thumbnail:
)
self.jpegname = jpegname
rotate_preview(jpegname, self.exif_tag)
- have_thumbnail.pop(self.jpegname, None)
except FileNotFoundError:
pass
+ elif have_thumbnail.pop(f".thumbnails/{thumb_filename}.p.jpg", None):
+ self.jpegname = f".thumbnails/{thumb_filename}.p.jpg"
if args.with_detail_page and 0:
self.average_color = im.resize((1, 1)).getpixel((0, 0))