为什么我的\u getexif()没有返回?

2024-04-19 22:46:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下Python脚本:

from PIL import Image
from PIL.ExifTags import TAGS

img = Image.open('/path/1.jpg')
info = img._getexif()
print info

为什么info返回为None,尽管我确保img已被读取?在

谢谢。在


Tags: pathfromimageimportinfo脚本noneimg