mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-09 17:40:59 +00:00
Run auto_orient when processing image
This commit is contained in:
parent
84997c72e7
commit
484d9c6a71
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue