mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-18 22:10:59 +00:00
Shortend WAGTAILIMAGES_JPEG_QUALITY setting
This commit is contained in:
parent
4492f326c5
commit
0f4fabb355
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ class Filter(models.Model):
|
|||
|
||||
if willow.original_format == 'jpeg':
|
||||
# Allow changing of JPEG compression quality
|
||||
quality = getattr(settings, 'WAGTAILIMAGES_JPEG_COMPRESSION_QUALITY', 85)
|
||||
quality = getattr(settings, 'WAGTAILIMAGES_JPEG_QUALITY', 85)
|
||||
willow.save_as_jpeg(output, quality=quality)
|
||||
else:
|
||||
willow.save(willow.original_format, output)
|
||||
|
|
|
|||
Loading…
Reference in a new issue