Fix bug that can happen with fast processing dataset
This commit is contained in:
parent
19ea8ecc38
commit
24cd94929e
|
|
@ -91,6 +91,8 @@ class FileItemDTO(
|
|||
except image_utils.UnknownImageFormat:
|
||||
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))
|
||||
w, h = img.size
|
||||
else:
|
||||
img = exif_transpose(Image.open(self.path))
|
||||
w, h = img.size
|
||||
|
|
|
|||
Loading…
Reference in New Issue