Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Extracting EXIF data with Python

I’ve been rewriting the photo gallery management system for KUSports.com in Python. One of the new features is that the system can automagically extract caption and photographer information from the photos, provided the information has previously been added to the jpeg file as EXIF data. I tried several methods of doing this but eventually settled on EXIF.py because it worked straight away using a simple process_file() function and doesn’t require any additional software. Recommended.

This is Extracting EXIF data with Python by Simon Willison, posted on 13th November 2003.

View blog reactions

Next: The good and the ugly

Previous: Easy installers for PHP scripts

5 comments

  1. Same great stuff for PHP here at zonageek

    Sergi - 14th November 2003 00:15 - #

  2. I like EXIF.py but it has trouble with some tags on shots from Canon cameras; I spent a little time debugging but didn't really narrow it down. It turns out that if you're only looking for known tags, it is fine - but if you try to dump everything, it gets confused. (The particular thing I care about extracting is orientation - the later Canon Elph series cameras actually have a rotation sensor, which saves a lot of time when building albums.)

    Mark Eichin - 14th November 2003 09:25 - #

  3. i've made some bug fixes to EXIF.py as reported by imgSeek (http://imgseek.sf.net/) users. You may also want to check out my IPTC metadata extraction wrapper.

    ricardo niederberger cabral - 14th November 2003 14:01 - #

  4. the link seems to be down (home.cfl.rr.com isn't resolving for me), but here's a google cache.

    anders - 16th November 2003 23:22 - #

  5. The link seems to go up and down like a yoyo - I've cached a copy of the file locally as well just in case it ever goes down long enough for Google's cache to empty.

    Simon Willison - 17th November 2003 04:57 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/11/13/exif

A django site