diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index 2ccba677..59c440e9 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -96,9 +96,7 @@ try: if os.environ.get("PRTY_NO_PIL_AVIF"): raise Exception() - from PIL import features as piltures - - if piltures.check("avif"): + if ".avif" in Image.registered_extensions(): HAVE_AVIF = True raise Exception()