mirror of
https://github.com/9001/copyparty.git
synced 2026-02-27 04:44:28 +10:00
th: account for HAVE_WEBP when computing PIL-able extensions
This commit is contained in:
@@ -300,6 +300,10 @@ class ThumbSrv(object):
|
|||||||
for f in "avif avifs".split(" "):
|
for f in "avif avifs".split(" "):
|
||||||
self.fmt_pil.discard(f)
|
self.fmt_pil.discard(f)
|
||||||
|
|
||||||
|
if not HAVE_WEBP:
|
||||||
|
for f in "webp".split(" "):
|
||||||
|
self.fmt_pil.discard(f)
|
||||||
|
|
||||||
self.thumbable: set[str] = set()
|
self.thumbable: set[str] = set()
|
||||||
|
|
||||||
if "pil" in self.args.th_dec:
|
if "pil" in self.args.th_dec:
|
||||||
|
|||||||
Reference in New Issue
Block a user