Skip to content

Allow saving of zero quality JPEG images#4440

Merged
hugovk merged 2 commits intopython-pillow:masterfrom
radarhere:jpeg_quality
Feb 25, 2020
Merged

Allow saving of zero quality JPEG images#4440
hugovk merged 2 commits intopython-pillow:masterfrom
radarhere:jpeg_quality

Conversation

@radarhere
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

hugovk commented Feb 21, 2020

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

@radarhere
Copy link
Copy Markdown
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
Copy Markdown
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