From 58f76bcd39c7361249f6ab7546b81451db5f9680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 16 Nov 2018 15:40:20 +0100 Subject: [PATCH] settings: preserve image format for thumbnails (#28081) This allows PNG alpha channel to be kept. --- combo/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/combo/settings.py b/combo/settings.py index 5e999efe..3792b5f7 100644 --- a/combo/settings.py +++ b/combo/settings.py @@ -184,6 +184,8 @@ HAYSTACK_CONNECTIONS = { }, } +# from solr.thumbnail -- https://sorl-thumbnail.readthedocs.io/en/latest/reference/settings.html +THUMBNAIL_PRESERVE_FORMAT = True COMBO_DEFAULT_PUBLIC_TEMPLATE = 'standard' COMBO_PUBLIC_TEMPLATES = {