Rob
04-12-2005, 12:36 AM
I wanted a bit more EXIF info, so I added the following tags. First find the line;
$iso = pullout($exif_result['SubIFD']['ISOSpeedRatings']) ; // not working apparently
and add the following code right after it;
$orientation = $exif_result['SubIFD']['Orientation'];
$maxAperature = $exif_result['SubIFD']['MaxAperatureValue'];
$exposureProgram = $exif_result['SubIFD']['ExposureProgram'];
$brightnessValue = $exif_result['SubIFD']['BrightnessValue'];
$exposureBias = $exif_result['SubIFD']['ExposureBiasValue'];
$meteringMode = $exif_result['SubIFD']['MeteringMode'];
$equivFocalLength = $exif_result['SubIFD']['unknown:a405'];
if( $equivFocalLength != "" ) $equivFocalLength .= " mm";
$tpl = str_replace("<EXIF_ORIENTATION>",$orientation,$tpl);
$tpl = str_replace("<EXIF_MAX_APERATURE>",$maxAperature,$tpl);
$tpl = str_replace("<EXIF_EXPOSURE_PROGRAM>",$exposureProgram,$tpl);
$tpl = str_replace("<EXIF_BRIGHTNESS_VALUE>",$brightnessValue,$tpl);
$tpl = str_replace("<EXIF_EXPOSURE_BIAS>",$exposureBias,$tpl);
$tpl = str_replace("<EXIF_METERING_MODE>",$meteringMode,$tpl);
$tpl = str_replace("<EXIF_EQUIV_FOCAL_LENGTH>",$equivFocalLength,$tpl);
I think you can see the new tags that it will give you. You can see examples of them on my website. A quick explanation though;
Orientation - For cameras that support, horizontal or vertical
Max Aperature - Of the lens you are using
Exposure Program - Stuff like manual, aperature priority, etc
Brightness value - The EV as indicated by the meter
Exposure Bias - Number of stops +/- that you set
Metering Mode - spot, honeycomb, stuff like that
Equiv focal length - Very few cameras support, minolta does. This is the 35mm equiv focal length. For example, because of the digital sensor size, 100mm on my lens on my digital SLR is the same as 150mm on a film SLR. Nice for those of us that still think in film terms ;)
Enjoy :D
$iso = pullout($exif_result['SubIFD']['ISOSpeedRatings']) ; // not working apparently
and add the following code right after it;
$orientation = $exif_result['SubIFD']['Orientation'];
$maxAperature = $exif_result['SubIFD']['MaxAperatureValue'];
$exposureProgram = $exif_result['SubIFD']['ExposureProgram'];
$brightnessValue = $exif_result['SubIFD']['BrightnessValue'];
$exposureBias = $exif_result['SubIFD']['ExposureBiasValue'];
$meteringMode = $exif_result['SubIFD']['MeteringMode'];
$equivFocalLength = $exif_result['SubIFD']['unknown:a405'];
if( $equivFocalLength != "" ) $equivFocalLength .= " mm";
$tpl = str_replace("<EXIF_ORIENTATION>",$orientation,$tpl);
$tpl = str_replace("<EXIF_MAX_APERATURE>",$maxAperature,$tpl);
$tpl = str_replace("<EXIF_EXPOSURE_PROGRAM>",$exposureProgram,$tpl);
$tpl = str_replace("<EXIF_BRIGHTNESS_VALUE>",$brightnessValue,$tpl);
$tpl = str_replace("<EXIF_EXPOSURE_BIAS>",$exposureBias,$tpl);
$tpl = str_replace("<EXIF_METERING_MODE>",$meteringMode,$tpl);
$tpl = str_replace("<EXIF_EQUIV_FOCAL_LENGTH>",$equivFocalLength,$tpl);
I think you can see the new tags that it will give you. You can see examples of them on my website. A quick explanation though;
Orientation - For cameras that support, horizontal or vertical
Max Aperature - Of the lens you are using
Exposure Program - Stuff like manual, aperature priority, etc
Brightness value - The EV as indicated by the meter
Exposure Bias - Number of stops +/- that you set
Metering Mode - spot, honeycomb, stuff like that
Equiv focal length - Very few cameras support, minolta does. This is the 35mm equiv focal length. For example, because of the digital sensor size, 100mm on my lens on my digital SLR is the same as 150mm on a film SLR. Nice for those of us that still think in film terms ;)
Enjoy :D