Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You might want to check out <a href="https://github.com/ianare/exif-py" rel="noreferrer">exif-py</a>:</p> <blockquote> <p>Python library to extract EXIF data from tiff and jpeg files. Very easy to use - $ ./EXIF.py image.jpg</p> </blockquote> <p>or the <a href="http://www.pythonware.com/products/pil/" rel="noreferrer">Python Imaging Library (PIL)</a>:</p> <blockquote> <p>The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities.</p> </blockquote> <p>There's also the aptly named pyexif: <a href="http://pyexif.sourceforge.net/" rel="noreferrer">http://pyexif.sourceforge.net/</a></p> <blockquote> <p>The pyexif python library and tools aims at extracting EXIF information from Jpeg and Tiff files which include it. This information is typically included in images created using digital imaging devices such as digital cameras, digital film scanners, etc. </p> </blockquote> <p>However, it looks like pyexif hasn't been updated in quite while. They recommend if theirs isn't doing the trick to check out EXIF-py, so you should probably try that one first, as their sourceforge page seems to have <em>some</em> activity there lately, though not much. Finally, using PIL you could do this:</p> <pre><code>from PIL import Image from PIL.ExifTags import TAGS def get_exif(fn): ret = {} i = Image.open(fn) info = i._getexif() for tag, value in info.items(): decoded = TAGS.get(tag, tag) ret[decoded] = value return ret </code></pre> <p><strong>Disclaimer</strong>:<br> I actually have no idea which is best, this is just what I was able to piece together with Google. :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload