mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	added new VP8 mode for lossless reading of RGBA, fixes failing tests
This commit is contained in:
		
							parent
							
								
									27b1054b77
								
							
						
					
					
						commit
						2c1e800836
					
				| 
						 | 
				
			
			@ -12,6 +12,7 @@ _VALID_WEBP_MODES = {
 | 
			
		|||
_VP8_MODES_BY_IDENTIFIER = {
 | 
			
		||||
    b"VP8 ": "RGB",
 | 
			
		||||
    b"VP8X": "RGBA",
 | 
			
		||||
    b"VP8L": "RGBA", # lossless
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -144,9 +144,6 @@ def test_write_lossless_rgb():
 | 
			
		|||
    
 | 
			
		||||
    pil_image.save(temp_file, lossless=True)
 | 
			
		||||
    
 | 
			
		||||
    # Visually checking the image in Chrome shows as expected.
 | 
			
		||||
    # This is failing to read...
 | 
			
		||||
    
 | 
			
		||||
    image = Image.open(temp_file)
 | 
			
		||||
    image.load()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user