Skip to content

Commit

Permalink
Floor the size
Browse files Browse the repository at this point in the history
  • Loading branch information
orlnub123 authored and radarhere committed Feb 16, 2020
1 parent 16730aa commit 518eef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2236,7 +2236,7 @@ def thumbnail(self, size, resample=BICUBIC, reducing_gap=2.0):
:returns: None
"""

x, y = size
x, y = map(math.floor, size)
if x >= self.width and y >= self.height:
return

Expand Down

0 comments on commit 518eef6

Please sign in to comment.