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