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