[英]Why is my _getexif() returning None?
I have the following Python
script:我有以下Python
脚本:
from PIL import Image
from PIL.ExifTags import TAGS
img = Image.open('/path/1.jpg')
info = img._getexif()
print info
Why is info
returned as None
, although that I made sure that img
has been read?为什么info
返回None
,尽管我确保img
已被读取?
Thanks.谢谢。
我认为问题是因为我正在阅读的图像首先似乎没有 exif 数据,而不是使用手机相机拍摄的图像,而我正在阅读的图像显然没有。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.