You are viewing a single comment's thread from:

RE: Extracting EXIF (Meta)Data From Images With Python

in #utopian-io6 years ago

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.

Sort:  

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 using requests, did you try wrapping response.content in io.BytesIO before passing it to exifread.process_file?

I did not, will look into at a later time. Thanks for the tip

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63744.49
ETH 2639.10
USDT 1.00
SBD 2.77