Fixed the webp bug finally.

This commit is contained in:
Jaret Burkett
2024-09-25 13:56:00 -06:00
parent 6b4034122f
commit 86b5938cf3

View File

@@ -55,7 +55,7 @@ class FileItemDTO(
print_once(f'Warning: Some images in the dataset cannot be fast read. ' + \
f'This process is faster for png, jpeg')
img = exif_transpose(Image.open(self.path))
h, w = img.size
w, h = img.size
size_database[filename] = (w, h)
self.width: int = w
self.height: int = h