+ 2
How to extract metadata using Python 3.5.4?
i have tried _getexif().items function but l got an Attribute error.
4 ответов
+ 1
metadata of what?
+ 1
import os
import sys
from PIL import Image
from PIL.ExifTags import TAGS
image = sys.argv[1]
for (tag,value) in Image.open(image)._getexit().items():
print("%s = %s" %(TAGS.get(tag),value))
0
metadata of an image
0
i dont know