diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-03 14:28:59 +0900 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-03 14:28:59 +0900 |
commit | 14e55a330146bda01f883a79e3900314a79eb22c (patch) | |
tree | b4ee6af87762d87abe358d42870b1f4b707e1706 | |
parent | 335428c2c8139dfe07ba096a6defa75036660244 (diff) |
print PIL.UnidentifiedImageError
-rw-r--r-- | modules/img2img.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index 56c846d6..9fc3a698 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -48,7 +48,8 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args): try:
img = Image.open(image)
- except UnidentifiedImageError:
+ except UnidentifiedImageError as e:
+ print(e)
continue
# Use the EXIF orientation of photos taken by smartphones.
img = ImageOps.exif_transpose(img)
|