Sunday, March 14, 2010

Sigma 400mm f/5.6 (Sony A700)


Sigma 400mm f/5.6 (Sony A700), originally uploaded by chored.

In a moment of madness on Thursday I bought this Sigma 400m f/5.6 off eBay. Not sure why. Anyway, it turned up yesterday.

First impressions are mixed. It's not massively sharp, although I've taken a few test shots which are definitely acceptable at the kind of resolutions I would ever need. It's a bit of a pain because it's so long (600mm equivalent on my A700), so you need to shoot at a pretty fast shutter speed. On the other hand, the zoom is ridiculous.

Hopefully I'll get a chance to try it out in the real-world sometime soon. At the latest, Rosie and I are going on a photography course at the Highland Wildlife park in July. Just hope it's nice and bright that day :)

Sunday, March 07, 2010

Exif Woes

I have a local web script I use when uploading photos to Flickr so that all the information I add (e.g. title, description, tags etc.) is stored in the Exif of the photo, meaning if I ever move away from Flickr I still have all the extra meta-data I've added for each photo.

One of the things I wanted to do was tag which lens the photo was taken with, I had just been trying to work it out based on the focal length and aperature (e.g. if it's less than f/5.6 at certain focal lengths I know it's my Tamron 17-50mm f/2.8 rather than the Sony kit lens and anything over 70mm has to be the Tamron 55-200mm). This works to a point, but e.g. anything taken between 17mm and 50mm at f/5.6 or higher could be either the kit lens or the Tamron.

Neil had claimed that the lens information was stored in the Exif, but I wasn't convinced as I hadn't seen it for any of my photos, I wondered if maybe only the newer Sonys contained this information, but after checking on Flickr, sure enough there it is "Lens Type: Tamron Lens (255)". I'd assumed I'd just missed this, so yesterday when I came to upload another photo I thought I'd give it a try and update my process.

The thing is, that the "Lens Type" field isn't one of the standard fields returned by PHP's exif_read_data() function. It's actually buried inside the "MakerNote" field which exif_read_data() returns as a big block of binary data. As well as exif_read_data, I'm also using the PHP Exif Library (PEL) to write Exif info back into the files. It's pretty powerful, but Exif is a bit of a crazy format, so finding the exact bits you need to extract the data proved problematic. In the end, I could get hold of the binary data for the MakerNote field, but couldn't find a way to parse this as another TIFF container to get at the underlying information.

There's some good information about the layout of this data here, and I did contemplate trying to parse it myself. I found another PHP library (PHP JPEG Metadata Toolkit) which claims to be able to parse Sony MakerNote information, but I didn't have much luck with getting it to run.

In the end, I stumbled across a Perl library for reading Exif data (Exif Tool), this handles the Sony MakerNote field flawlessly and comes with a sample script which can parse the Exif for a photo and return it in a variety of formats.

In the end, I just wrote a wrapper round this script which executes the script from within PHP, getting the results in JSON format and then converting that to a PHP object and returning it. Seems to work flawlessly and the information returned is even better than Flickr, giving the complete name of the lens rather than just "Tamron Lens (255)".

If I get time, I plan to try and work out how Exif Tool decodes the MakerNote and see if I can replicate this in PHP (probably using PEL) but in the meantime, the hack seems to work and now my photos have the lens automatically tagged on upload.

Hopefully, someone trying to do something similar finds this information useful, at least in terms of where to start looking.

Labels: , , , , , , ,

Thursday, March 04, 2010

Flickr Stats API

I guess, this is what Twitter's for, but anyway. Interesting development from Flickr; (Stats API). Now I can add more useless graphs to my website!

Labels: , , , ,

Band of Brothers

I got Band of Brothers on Blu-Ray for my Christmas, I had never seen it before but had heard good things and after recently finishing the series, I'm pleased to say it lived up to expectations.

The 10 1 hour episodes follow a paratroop regiment during the Second World War from their landing behind enemy lines on D-Day through to the end of the War. It plays out much like a 10 hour Saving Private Ryan, with movie quality production values, sets and action sequences.

The Blu-Ray presentation is pretty good, a lot of the scenes shot in lower light are visibly grainy, but some of the action sequences looks stunning in Hi-Def.

Overall, well worth watching on either DVD or Blu-Ray.

5/5

Labels: , ,

Tuesday, March 02, 2010

Ice Factor - Kinloch Leven

Just back from a weekend away, we were staying in Fort Augustus, but seemed to spend most of our time driving between Ballachulish and there and back. On Sunday we had a 2.5 hour ice climbing lesson booked with Ice Factor in Kinloch Leven.

Kinloch Leven is in the middle of nowhere, 7 miles down the side of Loch Leven from Glencoe village. There used to be a large aluminum factory there but that has since shut down, now there is the Atlas brewery and the Ice Factor which boasts indoor climbing walls and a high wire course. Perhaps most interestingly though, they also have a large indoor ice climbing room. Basically a huge freezer where the walls are covered in ice, so for £48 each we got to spend 2.5 hours in the freezer hanging onto the ice with ice axes and crampons.

It's great fun and our instructor was very friendly and helpful. All the equipment is provided and if you're into climbing, this is a great introduction to ice climbing, I want to go do it outside now!

Labels: , ,