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

Extremely poor JPEG quality by default with new Pillow #34

Closed
pdewacht opened this issue Feb 10, 2021 · 0 comments
Closed

Extremely poor JPEG quality by default with new Pillow #34

pdewacht opened this issue Feb 10, 2021 · 0 comments

Comments

@pdewacht
Copy link
Contributor

Hi. By default django-resized has a JPEG quality of 0:

DEFAULT_QUALITY = getattr(settings, 'DJANGORESIZED_DEFAULT_QUALITY', 0)

(from django_resized/forms.py).

This worked fine with old Pillow releases, because they treated 0 as 'default' quality.

But Pillow 7.1.0 (released 2020-04-01) actually implements JPEG quality 0: python-pillow/Pillow#4439

As you can imagine, this results in horribly poor quality.

@Gagaro Gagaro closed this as completed in f29e414 Feb 15, 2021
Gagaro added a commit that referenced this issue Feb 15, 2021
Fix JPEG default quality (fixes #34)
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

No branches or pull requests

1 participant