diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-19 21:52:32 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-19 21:52:32 +0200 |
commit | 65dba564dded902ae8103e5f5a6dc5d64e4fb1a0 (patch) | |
tree | f2b3907ae889fc575c81d0136a2e66c7e9ed2007 /bin | |
parent | 9aeef7814ce86bba8d22e9f6c3903c280b0d1732 (diff) |
fix handling of existing CR2 previews
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pyggle | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |