mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-16 04:16:35 +03:00
Floor the size
This commit is contained in:
parent
6d3c7d6941
commit
2e716de63d
|
@ -2236,7 +2236,7 @@ class Image:
|
||||||
:returns: None
|
:returns: None
|
||||||
"""
|
"""
|
||||||
|
|
||||||
x, y = size
|
x, y = map(math.floor, size)
|
||||||
if x >= self.width and y >= self.height:
|
if x >= self.width and y >= self.height:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user