Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print Exception for Fix #9185 add message #9219

Merged
merged 1 commit into from
Apr 29, 2023
Merged

print Exception for Fix #9185 add message #9219

merged 1 commit into from
Apr 29, 2023

Conversation

Z-nonymous
Copy link
Contributor

Describe what this pull request is trying to achieve.

Fix the exception beeing thrown when a file in the source directory of the (img2img > batch) tab is not an image, has improper format or is not supported by Pillow.
A simple try/except/continue to skip that file if PIL.UnidentifiedImageError is raised during PIL.Image.open().

Additional notes and description of your changes

Filtering the list for appropriate image extensions is not the best approach (see details in issue #9185)

Environment this was tested in

  • OS: Windows 10
  • Browser: Firefox latest
  • Graphics card: NVIDIA GTX 1024 Ti 11GB

@AUTOMATIC1111 AUTOMATIC1111 changed the base branch from master to dev April 29, 2023 13:52
@AUTOMATIC1111 AUTOMATIC1111 merged commit 1142a87 into AUTOMATIC1111:dev Apr 29, 2023
@w-e-w w-e-w changed the title Fix #9185 Fix #9185 add message Apr 29, 2023
@w-e-w w-e-w changed the title Fix #9185 add message add Fix #9185 add message Apr 29, 2023
@w-e-w w-e-w changed the title add Fix #9185 add message print Exception for Fix #9185 add message Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants