Skip to content

Bulk asynchronous downloader for multiple file hosts

Close image file.

Jules-WinnfieldX666b1ba09b8e
diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py
index 10e9de9d9..b1a34f368 100644
--- a/cyberdrop_dl/utils/sorting.py
+++ b/cyberdrop_dl/utils/sorting.py
@@ -110,6 +110,7 @@ class Sorter:
image = Image.open(file)
width, height = image.size
resolution = f"{width}x{height}"
+ image.close()
parent_name = file.parent.name
filename, ext = file.stem, file.suffix