From 320dff834d66e71dc99b524e6df39f19f9e5e3e6 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 6 May 2025 19:30:28 +1000 Subject: [PATCH] Thumbnail does not scale up --- src/PIL/VtfImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/VtfImagePlugin.py b/src/PIL/VtfImagePlugin.py index 4d1f0221a..a8bf4ed30 100644 --- a/src/PIL/VtfImagePlugin.py +++ b/src/PIL/VtfImagePlugin.py @@ -308,7 +308,7 @@ def _save(im: Image.Image, fp: IO[bytes], filename: str | bytes) -> None: mipmap_count = _get_mipmap_count(width, height) if generate_mips else 0 thumb = im.convert("RGBA") - thumb.thumbnail((min(16, width), min(16, height))) + thumb.thumbnail((16, 16)) thumb = thumb.resize((_closest_power(thumb.width), _closest_power(thumb.height))) header = VTFHeader(