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

Convert 16-bit greyscale to 8-bit when saving as JPEG #7691

Merged
merged 3 commits into from
Feb 19, 2023

Conversation

missionfloyd
Copy link
Collaborator

@missionfloyd missionfloyd commented Feb 9, 2023

stable-diffusion-webui-depthmap-script (possibly others?) returns 16-bit greyscale images, which causes an error when saving as JPEG. This converts such images to 8-bit.

8-bit greyscale JPEG derived from #6065
depthmap-0001-L

Fixes #6065, closes #7616 (alternate solution)

@AUTOMATIC1111 AUTOMATIC1111 merged commit 9c4eaac into AUTOMATIC1111:master Feb 19, 2023
@missionfloyd missionfloyd deleted the 16bit-convert branch February 20, 2023 04:18
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.

[Bug]: OSError: cannot write mode I;16 as JPEG
2 participants