You are viewing a single comment's thread from:
RE: Extracting EXIF (Meta)Data From Images With Python
Nice, I've used exifread
in Python to extract JPEG metadata such as the timestamp and GPS coordinates of the photo. IIRC, I tried scikit-image, but it was overkill and much less straightforward.
Nice! I also found exifread very straightforward to work with. Do not know about scikit-image, did not have to look further as this worked quite well ;p
I tried downloading images from an url in python and extracting the EXIF data from the downloaded image, but could not get this to work. For some reason the EXIF data got omitted, while downloading the image manually did make it work.
Hmm. I feel like it should be possible to extract EXIF metadata from an image URL. The
exifread.process_file
source code seems to expect a bytestream file-like object. If you're usingrequests
, did you try wrappingresponse.content
inio.BytesIO
before passing it toexifread.process_file
?I did not, will look into at a later time. Thanks for the tip