mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 18:23:14 +00:00
Fix Python 2 issue in "fill" image operation
This commit is contained in:
parent
c33ec77150
commit
c8fd797319
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue