image quality shouldn't be set to 100 #221

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

Comments

Projects
None yet
2 participants

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?

Owner

stephenmcd commented May 10, 2012

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

Great solution! Thanks Big D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment