Merge pull request #4275 from radarhere/thumbnail

Added release notes for #4256
This commit is contained in:
Hugo van Kemenade 2019-12-17 15:16:09 +02:00 committed by GitHub
commit aa2c5f91af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,3 +92,9 @@ Use instead:
with Image.open("hopper.png") as im:
im.save("out.jpg")
Better thumbnail aspect ratio preservation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When calculating the new dimensions in ``Image.thumbnail``, round to the
nearest integer, instead of always rounding down.