mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge branch 'fix-typeerror' of https://github.com/homm/Pillow into webp_exif
This commit is contained in:
		
						commit
						c8895fa7a4
					
				| 
						 | 
				
			
			@ -32,8 +32,10 @@ class WebPImageFile(ImageFile.ImageFile):
 | 
			
		|||
    def _open(self):
 | 
			
		||||
        data, width, height, self.mode, icc_profile, exif = _webp.WebPDecode(self.fp.read())
 | 
			
		||||
 | 
			
		||||
        self.info["icc_profile"] = icc_profile
 | 
			
		||||
        self.info["exif"] = exif
 | 
			
		||||
        if icc_profile:
 | 
			
		||||
            self.info["icc_profile"] = icc_profile
 | 
			
		||||
        if exif:
 | 
			
		||||
            self.info["exif"] = exif
 | 
			
		||||
 | 
			
		||||
        self.size = width, height
 | 
			
		||||
        self.fp = BytesIO(data)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user