From c177b46b4a0cf98603bdae3a35c923d171dd32dd Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 29 Nov 2017 19:56:17 +1100 Subject: [PATCH 1/2] Updated libwebp to 0.6.1 --- depends/install_webp.sh | 2 +- winbuild/config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/depends/install_webp.sh b/depends/install_webp.sh index 9993254a6e1..37a77243603 100755 --- a/depends/install_webp.sh +++ b/depends/install_webp.sh @@ -1,7 +1,7 @@ #!/bin/bash # install webp -archive=libwebp-0.6.0 +archive=libwebp-0.6.1 ./download-and-extract.sh $archive https://raw.githubusercontent.com/python-pillow/pillow-depends/master/$archive.tar.gz diff --git a/winbuild/config.py b/winbuild/config.py index e65ee9ea54e..5d320f3069f 100644 --- a/winbuild/config.py +++ b/winbuild/config.py @@ -66,9 +66,9 @@ 'version': '8.6.7', }, 'webp': { - 'url': 'http://downloads.webmproject.org/releases/webp/libwebp-0.6.0.tar.gz', - 'filename': PILLOW_DEPENDS_DIR + 'libwebp-0.6.0.tar.gz', - 'dir': 'libwebp-0.6.0', + 'url': 'http://downloads.webmproject.org/releases/webp/libwebp-0.6.1.tar.gz', + 'filename': PILLOW_DEPENDS_DIR + 'libwebp-0.6.1.tar.gz', + 'dir': 'libwebp-0.6.1', }, 'openjpeg': { 'url': SF_MIRROR+'/project/openjpeg/openjpeg/2.3.0/openjpeg-2.3.0.tar.gz', From 97dba9980508e9af02deda4eded8aa7483de91cc Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 7 Dec 2017 00:46:56 +1100 Subject: [PATCH 2/2] Increased average pixel value difference to allow for libwebp 0.6.1 --- Tests/test_file_webp_alpha.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_file_webp_alpha.py b/Tests/test_file_webp_alpha.py index ef9d74f3a4c..60a324d182c 100644 --- a/Tests/test_file_webp_alpha.py +++ b/Tests/test_file_webp_alpha.py @@ -119,7 +119,7 @@ def test_write_unsupported_mode_PA(self): image.getdata() target = Image.open(file_path).convert("RGBA") - self.assert_image_similar(image, target, 10.0) + self.assert_image_similar(image, target, 25.0) if __name__ == '__main__':