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

Allow saving of zero quality JPEG images #4440

Merged
merged 2 commits into from Feb 25, 2020

Conversation

radarhere
Copy link
Member

Resolves #4439

Since PIL, a JPEG quality of 0 has been used to indicate default quality. This PR changes that indicating value from 0 to -1, so that JPEG images of actual 0 quality can be produced.

@hugovk
Copy link
Member

hugovk commented Feb 21, 2020

The docs need updating too, at least the quality parameter here:

https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#jpeg

@hugovk
Copy link
Member

hugovk commented Feb 21, 2020

And let's mention it in the release notes too.

@radarhere
Copy link
Member Author

Good catch, thanks. I've updated the documentation, and added release notes.

@hugovk hugovk merged commit 3c995fd into python-pillow:master Feb 25, 2020
@hugovk
Copy link
Member

hugovk commented Feb 25, 2020

Thanks!

@radarhere radarhere deleted the jpeg_quality branch February 25, 2020 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't produce a Quality 0 JPEG
2 participants