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 6d3c7d6 commit 2e716de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
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 2e716de

Please sign in to comment.