Add test against upscaling

This commit is contained in:
orlnub123 2020-02-04 22:06:07 +00:00 committed by Andrew Murray
parent e226e4ed64
commit 6d3c7d6941

View File

@ -34,9 +34,9 @@ def test_aspect():
im.thumbnail((100, 100))
assert im.size == (100, 50)
im = Image.new("L", (256, 128))
im.thumbnail((100, 50))
assert im.size == (100, 50)
im = Image.new("L", (64, 64))
im.thumbnail((100, 100))
assert im.size == (64, 64)
im = Image.new("L", (128, 128))
im.thumbnail((100, 100))