Fix Python 2 issue in "fill" image operation

This commit is contained in:
Karl Hobley 2015-08-27 11:40:11 +01:00
parent c33ec77150
commit c8fd797319

View file

@ -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