From c8fd797319b7ce79a420942535e08fd291e36491 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 27 Aug 2015 11:40:11 +0100 Subject: [PATCH] Fix Python 2 issue in "fill" image operation --- wagtail/wagtailimages/image_operations.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wagtail/wagtailimages/image_operations.py b/wagtail/wagtailimages/image_operations.py index d1d90da7e..498042df6 100644 --- a/wagtail/wagtailimages/image_operations.py +++ b/wagtail/wagtailimages/image_operations.py @@ -159,7 +159,12 @@ class FillOperation(Operation): bottom = image_height # Crop! - willow.crop((math.floor(left), math.floor(top), math.ceil(right), math.ceil(bottom))) + willow.crop(( + int(math.floor(left)), + int(math.floor(top)), + int(math.ceil(right)), + int(math.ceil(bottom)) + )) # Get scale for resizing # The scale should be the same for both the horizontal and