Pigsaw Blog
All the pig that’s fit to saw

How geeks go shopping

I am absolutely not intending to buy a nice lens to replace my bog standard 18-55mm kit lens. Not at all. But I am doing the research for one because, you know, that’s where most of the fun’s to be had. And so one question I need to answer is: What is the focal length I tend to use on my photos? Because that will dictate the focal length (or range) of what I should be shopping for. Do I do lots of wide angle shots? Close-ups? How close up?

How to find out?

My answer was follows:

  1. Select all 4-star photos. These are the good ones; I’m not interested in data from the photos that didn’t make the grade. The focal length used in each photo is embedded in the Exif data in the JPEG file. Currently these photos are on Windows in Lightroom.
  2. Export said photos to a directory on a Linux box.
  3. SSH to the Linux box and go to the directory with the photos.
  4. apt-get install exiv2. (”exiv2 is a program to read and write Exif and IPTC image metadata and image comments”, says the man page.)
  5. Run the following pipeline:
    exiv2 *.jpg | grep ‘Focal length’ | sed -e ’s/ */ /g’ | cut -d ‘ ‘ -f 5 > focal-lengths.csv
    This extracts just focal length data into a CSV file.
  6. Back on Windows open up the CSV file in Excel.
  7. Perform Excel-fu to get a chart of the focal lengths. In my case I rounded them down to the nearest 5mm to get a clearer picture.

And that, my friends, is shopping.

Chart of focal lengths

Tags: ,

4 Responses to How geeks go shopping »»


Comments

  1. Comment by Danny | 2007/04/18 at 19:54:52

    Having read the above I did wonder if you are paying enough attention to your wife? and where are the choc cake pictures?

  2. Nik
    Comment by Nik | 2007/04/19 at 08:30:42

    Almost certainly not. Will have to redress the balance.

    And chocolate cake photo to come shortly.

  3. MC
    Comment by MC | 2007/04/20 at 15:57:13

    There’s only one thing I like better than a chocolate cake photo

  4. Nik
    Comment by Nik | 2007/04/20 at 17:47:56

    Unfortunately Wordpress doesn’t handle URLs for CCTP, the chocolate cake transfer protocol.


Leave a Reply »»