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

image quality shouldn't be set to 100 #221

Closed
jdeblank opened this issue May 10, 2012 · 2 comments
Closed

image quality shouldn't be set to 100 #221

jdeblank opened this issue May 10, 2012 · 2 comments

Comments

@jdeblank
Copy link

In mezzanine/core/templatetags/mezzanine_tags.py

image = image.save(thumb_path, filetype, quality=100)

According to the PIL docs (http://www.pythonware.com/library/pil/handbook/format-jpeg.htm):

The image quality, on a scale from 1 (worst) to 95 (best). The default is 75. Values above 95 should be avoided; 100 completely disables the JPEG quantization stage.

When set to 100, thumbnails with smaller proportions can actually have a significantly larger filesize. Maybe needs to be a global setting so it can easily be adjusted? thoughts?

@stephenmcd
Copy link
Owner

Nice find. We should definitely change it to 95 at the very least.

@jdeblank
Copy link
Author

Great solution! Thanks Big D.

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

2 participants