This commit is contained in:
2024-10-26 23:11:31 +02:00
parent 0a39ecd637
commit 03a9e46baa

View File

@@ -160,7 +160,7 @@ def process_image(item: str, folder: str, _args: Args, baseurl: str, sizelist: D
"name": item, "name": item,
"width": sizelist[item]["width"], "width": sizelist[item]["width"],
"height": sizelist[item]["height"], "height": sizelist[item]["height"],
"exifdata": sizelist[item]["exifdata"], "exifdata": sizelist[item].get("exifdata", ""),
} }
path = os.path.join(_args.root_directory, ".thumbnails", baseurl, item + ".jpg") path = os.path.join(_args.root_directory, ".thumbnails", baseurl, item + ".jpg")
if not os.path.exists(path) or _args.regenerate_thumbnails: if not os.path.exists(path) or _args.regenerate_thumbnails: