mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
removed close
This commit is contained in:
@@ -170,7 +170,6 @@ def list_folder(folder: str, title: str) -> None:
|
|||||||
if extsplit[1].lower() in args.file_extensions:
|
if extsplit[1].lower() in args.file_extensions:
|
||||||
with Image.open(os.path.join(folder, item)) as img:
|
with Image.open(os.path.join(folder, item)) as img:
|
||||||
width, height = img.size
|
width, height = img.size
|
||||||
img.close()
|
|
||||||
image = {
|
image = {
|
||||||
"url": f"{args.web_root_url}{baseurl}{urllib.parse.quote(item)}",
|
"url": f"{args.web_root_url}{baseurl}{urllib.parse.quote(item)}",
|
||||||
"thumbnail": f"{args.web_root_url}.thumbnails/{baseurl}{urllib.parse.quote(extsplit[0])}.jpg",
|
"thumbnail": f"{args.web_root_url}.thumbnails/{baseurl}{urllib.parse.quote(extsplit[0])}.jpg",
|
||||||
|
|||||||
Reference in New Issue
Block a user