Python's method of obtaining image exif information through the pil module
- 2020-04-02 14:41:31
- OfStack
This article illustrates python's method of obtaining image exif information through the pil module. Share with you for your reference. Specific analysis is as follows:
Python's pil module is super powerful and can be used not only to process images but also to retrieve exif data for images
from PIL import Image
#code from //www.jb51.net
img = Image.open('img.jpg')
exif_data = img._getexif()
I hope this article has helped you with your Python programming.