th: account for HAVE_WEBP when computing PIL-able extensions

This commit is contained in:
Ivan Shapovalov
2026-02-03 01:04:24 +01:00
committed by ed
parent 6694998985
commit b2711e05b6

View File

@@ -300,6 +300,10 @@ class ThumbSrv(object):
for f in "avif avifs".split(" "):
self.fmt_pil.discard(f)
if not HAVE_WEBP:
for f in "webp".split(" "):
self.fmt_pil.discard(f)
self.thumbable: set[str] = set()
if "pil" in self.args.th_dec: