diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-03 05:28:59 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-03 05:28:59 +0000 |
commit | 14e55a330146bda01f883a79e3900314a79eb22c (patch) | |
tree | b4ee6af87762d87abe358d42870b1f4b707e1706 /modules/img2img.py | |
parent | 335428c2c8139dfe07ba096a6defa75036660244 (diff) | |
download | stable-diffusion-webui-gfx803-14e55a330146bda01f883a79e3900314a79eb22c.tar.gz stable-diffusion-webui-gfx803-14e55a330146bda01f883a79e3900314a79eb22c.tar.bz2 stable-diffusion-webui-gfx803-14e55a330146bda01f883a79e3900314a79eb22c.zip |
print PIL.UnidentifiedImageError
Diffstat (limited to 'modules/img2img.py')
-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)
|