folderblog EXIF info updates
Okay, just as I was about to go out and grab myself some dinner I had an idea for a quick fix for the aperture field on my photoblog. I’m using folderblog to do this but I don’t think that the issue really lies there. Instead I think Bibble Pro exports “odd” (although valid) EXIF info.
My idea was just to round the aperture to one decimal place… this works perfectly. I then decided that I should probably look at why the shutter speed is incorrectly calculated… it turns out that the EXIF stores the shutter speed (and aperture and probably other values) not as a single value, but two. Odd? Seems a little to me.
Anyway, fb_exif.php was checking if one of these two numbers is not equal to one. But my EXIF info is slightly odd, so I reworked this to check if one number was larger than the other (i.e. less than 1s) and then rounded the resulting shutter speed to 0dp. Perfect!
Tags: Website