mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	
						commit
						22d7b0495a
					
				| 
						 | 
					@ -455,6 +455,12 @@ def _getexif(self):
 | 
				
			||||||
    # and is likely to be replaced with something better in a future
 | 
					    # and is likely to be replaced with something better in a future
 | 
				
			||||||
    # version.
 | 
					    # version.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Use the cached version if possible
 | 
				
			||||||
 | 
					    try:
 | 
				
			||||||
 | 
					        return self.info["parsed_exif"]
 | 
				
			||||||
 | 
					    except KeyError:
 | 
				
			||||||
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # The EXIF record consists of a TIFF file embedded in a JPEG
 | 
					    # The EXIF record consists of a TIFF file embedded in a JPEG
 | 
				
			||||||
    # application marker (!).
 | 
					    # application marker (!).
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
| 
						 | 
					@ -493,6 +499,8 @@ def _getexif(self):
 | 
				
			||||||
        info.load(fp)
 | 
					        info.load(fp)
 | 
				
			||||||
        exif[0x8825] = _fixup_dict(info)
 | 
					        exif[0x8825] = _fixup_dict(info)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Cache the result for future use
 | 
				
			||||||
 | 
					    self.info["parsed_exif"] = exif
 | 
				
			||||||
    return exif
 | 
					    return exif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user