summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pyggle8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/pyggle b/bin/pyggle
index 1c29295..4a2e74a 100755
--- a/bin/pyggle
+++ b/bin/pyggle
@@ -573,7 +573,13 @@ if __name__ == "__main__":
try:
im = Image.open(filename)
except PIL.UnidentifiedImageError:
- continue
+ try:
+ im = Image.open(f".thumbnail.for.{filename}")
+ except FileNotFoundError:
+ continue
+ except PIL.UnidentifiedImageError:
+ # perhaps raise a warning?
+ continue
thumbnails.append(
Thumbnail(filename, im, size=args.size, with_gps=args.with_nominatim)