From b2711e05b6024018f0bac98be328ee84e7499612 Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Tue, 3 Feb 2026 01:04:24 +0100 Subject: [PATCH] th: account for HAVE_WEBP when computing PIL-able extensions --- copyparty/th_srv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index 84906dfc..d2ede61c 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -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: