It's been fun writing the code for this site. I've been laid up with a bad cold for a few days, and this has been the perfect opportunity to do some deep feeding on computer code.
I already had a reasonable understanding of HTML, PHP and MySql. (For the already bored, these are a couple of hand in hand computer languages that allow websites to be built and made "reactive" through the questioning of a database.)
The really interesting thing has been working on the interface between digital images and computer programs.
Most digital images contain lots of bits that work together to make up a picture. I already knew that. I also knew that every digital image was attached to a data file called EXIF date. (EXIF means Exchangeable Image File Format by the way). Getting boring here, so get back to the interesting bit.
I discovered that this EXIF data is attached to each image. It records such things as the camera equipment used and the settings of that equipment, and as a photographer I find that info really interesting. If I know the settings and the equipment used to make a picture, it often gives me insight into the cause and effect of picture making. So the first thing I had to do was find a way of getting that info off the tiny little card and into characters on my computer.
For example,
return floatval($parts[0]) / floatval($parts[1]);}
$exif = exif_read_data($fileTarget);
$lon = getGps($exif["GPSLongitude"], $exif['GPSLongitudeRef']);
More boring. OK, but I like it. It's such a buzz when the code suddenly works after hours of testing.
You can click on a Google Earth link if you enter the search codes 264 or 265. The link will take you to where I took the photo.
Neat, huh. Anyway, I hope you enjoy the show.
I already had a reasonable understanding of HTML, PHP and MySql. (For the already bored, these are a couple of hand in hand computer languages that allow websites to be built and made "reactive" through the questioning of a database.)
The really interesting thing has been working on the interface between digital images and computer programs.
Most digital images contain lots of bits that work together to make up a picture. I already knew that. I also knew that every digital image was attached to a data file called EXIF date. (EXIF means Exchangeable Image File Format by the way). Getting boring here, so get back to the interesting bit.
I discovered that this EXIF data is attached to each image. It records such things as the camera equipment used and the settings of that equipment, and as a photographer I find that info really interesting. If I know the settings and the equipment used to make a picture, it often gives me insight into the cause and effect of picture making. So the first thing I had to do was find a way of getting that info off the tiny little card and into characters on my computer.
For example,
echo $ExposureTime; echo " shutterspeed<br/>";
$ISOSpeedRatings = $exif['EXIF']['ISOSpeedRatings'];
is part of the key to finding out the ISO (ISO refers to your camera sensor's sensitivity to light). There were quite a few of there keys to allow me to record and publish the settings for each image. You can study these settings while you look at the image. It can give insights.
The other REALLY interesting bit is this. My camera contains a GPS system and it records the Latitude and Longitude coordinates when it takes a picture, provided it can "see" the satellite and provided I have GPS turned on. (Sometimes I turn it off because it is battery hungry).
With this data I can give you a link to Google Maps and you can see where I was on the planet when I took the shot.
Here is some more gobbleygook to explain how I get the info.
$exif = exif_read_data($fileTarget);
$lon = getGps($exif["GPSLongitude"], $exif['GPSLongitudeRef']);
More boring. OK, but I like it. It's such a buzz when the code suddenly works after hours of testing.
You can click on a Google Earth link if you enter the search codes 264 or 265. The link will take you to where I took the photo.
Neat, huh. Anyway, I hope you enjoy the show.
Comments