home · projects · papers · blog · gallery · contact ·
anil madhavapeddy // anil.recoil.org


Parsing EXIF/IPTC photo tags using pyexiv2 on Leopard

Posted by Anil Madhavapeddy Thu, 17 Apr 2008 10:58:00 GMT

I've been looking around at refreshing my current photo gallery to make it easier to update, since I'm around 1000 photos behind over the last year. Part of making it easier to use is to adopt an Aperture-based system of marking the metadata directly in the image itself, and figuring out how to render so many pictures more effectively in my gallery.

The best library I could find to do the job is Exiv2 and its associated Python bindings pyexiv2. They use the rather complex Boost.Python bindings, which are a total pain to compile on MacOS X Leopard.

In order to get it to work:

  • Use the latest Fink to install:
    • python25
    • boost1.34.python25
    • libexiv2
    • scons
  • Download the latest pyexiv2 distribution, extract it, and drop in my exiv2 Leopard Makefile into the extracted directory.
  • Type in:
    • make
    • sudo make install.
  • Test it out by running python2.5 and experimenting with importing pyexiv2 (see the pyexiv2 developer guide for more information.

I'll tidy this up into a fink package sometime, but for now I want to press on with finishing my Django experiments.

Posted in  | Tags  | no comments

Comments

(leave url/email »)

   Comment Markup Help Preview comment



Copyright © 2003-2006 by Anil Madhavapeddy. All rights reserved.
Original design used with kind permission from Jon Parise.
Valid CSS
Valid XHTML 1.0