Increase image quality of downscaled images from 70 to 95

This commit is contained in:
Tony Wasserka 2020-05-07 19:18:19 +02:00 committed by Agate
parent 5d2e72e69e
commit 609dd3b495
7 changed files with 89 additions and 3 deletions

View file

@ -1211,7 +1211,10 @@ VERSATILEIMAGEFIELD_RENDITION_KEY_SETS = {
("medium_square_crop", "crop__200x200"),
],
}
VERSATILEIMAGEFIELD_SETTINGS = {"create_images_on_demand": False}
VERSATILEIMAGEFIELD_SETTINGS = {
"create_images_on_demand": False,
"jpeg_resize_quality": env.int("THUMBNAIL_JPEG_RESIZE_QUALITY", default=95),
}
RSA_KEY_SIZE = 2048
# for performance gain in tests, since we don't need to actually create the
# thumbnails