mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #1110 from radarhere/master
Early webp versions are more lossy.
This commit is contained in:
commit
0bc24cb213
|
@ -83,7 +83,11 @@ class TestFileWebpAlpha(PillowTestCase):
|
||||||
image.load()
|
image.load()
|
||||||
image.getdata()
|
image.getdata()
|
||||||
|
|
||||||
self.assert_image_similar(image, pil_image, 1.0)
|
# early versions of webp are known to produce higher deviations: deal with it
|
||||||
|
if _webp.WebPDecoderVersion(self) <= 0x201:
|
||||||
|
self.assert_image_similar(image, pil_image, 3.0)
|
||||||
|
else:
|
||||||
|
self.assert_image_similar(image, pil_image, 1.0)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user