summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pyggle5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/pyggle b/bin/pyggle
index 3a818b8..231087a 100755
--- a/bin/pyggle
+++ b/bin/pyggle
@@ -268,8 +268,9 @@ class Thumbnail:
except FileNotFoundError:
pass
- self.thumbname = f".thumbnails/{filename}"
- if not filename.lower().endswith((".jpeg", ".jpg")):
+ thumb_filename = filename.replace("/", "-")
+ self.thumbname = f".thumbnails/{thumb_filename}"
+ if not self.thumbname.lower().endswith((".jpeg", ".jpg")):
self.thumbname += ".jpg"
im = rotate_image(im, self.exif_tag)