Thumbnail does not scale up

This commit is contained in:
Andrew Murray 2025-05-06 19:30:28 +10:00
parent 99f8d8ff39
commit 320dff834d

View File

@ -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(