Run auto_orient when processing image

This commit is contained in:
Karl Hobley 2015-12-14 10:20:55 +00:00 committed by Matt Westcott
parent 84997c72e7
commit 484d9c6a71

View file

@ -384,6 +384,9 @@ class Filter(models.Model):
with image.get_willow_image() as willow:
original_format = willow.format_name
# Fix orientation of image
willow = willow.auto_orient()
for operation in self.operations:
willow = operation.run(willow, image) or willow