From a5499170f9d030c07bea667dc66f3ae86484e9fb Mon Sep 17 00:00:00 2001 From: wiredfool Date: Wed, 15 May 2013 17:22:41 -0700 Subject: [PATCH] Feature for transparent webp --- selftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/selftest.py b/selftest.py index 91a14bb54..252231fbf 100644 --- a/selftest.py +++ b/selftest.py @@ -190,6 +190,14 @@ if __name__ == "__main__": check_module("FREETYPE2", "_imagingft") check_module("LITTLECMS", "_imagingcms") check_module("WEBP", "_webp") + try: + import _webp + if _webp.WebPDecoderBuggyAlpha(): + print("***", "Transparent WEBP", "support not installed") + else: + print("---", "Transparent WEBP", "support ok") + except Exception: + pass print("-"*68) # use doctest to make sure the test program behaves as documented!