我有以下 Python
脚本:
from PIL import Image
from PIL.ExifTags import TAGS
img = Image.open('/path/1.jpg')
info = img._getexif()
print info
为什么 info
返回为 None
,尽管我已确保 img
已被读取?
谢谢。
最佳答案
我认为问题是因为我正在阅读的图像似乎首先没有 exif 数据,而不是使用手机相机拍摄的图像,例如,我正在阅读的图像显然没有。
关于python - 为什么我的 _getexif() 返回 None?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47021950/