I have the following Python
script:
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?
Thanks.
I think the issue was because the image I was reading seemed not to have exif data in the first place, as opposed to the images taken using a mobile phone camera for instance, which the image I was reading apparently hasn't.