From 43e0b9d23704f61abead476208b9f8b057a60fb7 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Wed, 13 Apr 2016 00:04:51 +0100 Subject: [PATCH] Added "original_format" into initial environment --- wagtail/wagtailimages/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wagtail/wagtailimages/models.py b/wagtail/wagtailimages/models.py index 3c4c50572..4f0751ff2 100644 --- a/wagtail/wagtailimages/models.py +++ b/wagtail/wagtailimages/models.py @@ -413,7 +413,9 @@ class Filter(models.Model): # Fix orientation of image willow = willow.auto_orient() - env = {} + env = { + 'original-format': original_format, + } for operation in self.operations: # Check that the operation can take the new "env" argument # (added in Wagtail 1.5)