mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	early versions of webp are known to produce higher deviations: deal with it
This commit is contained in:
		
							parent
							
								
									43830273a5
								
							
						
					
					
						commit
						be30160d57
					
				|  | @ -83,7 +83,11 @@ class TestFileWebpAlpha(PillowTestCase): | |||
|         image.load() | ||||
|         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__': | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user