mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 13:33:09 -07:00
th: account for HAVE_WEBP when computing PIL-able extensions
This commit is contained in:
parent
6694998985
commit
b2711e05b6
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue