PDA

View Full Version : Extra EXIF Tags for version 1.4


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

steff
04-13-2005, 09:40 AM
thanks! :)

how is it possible to change it into an addon?

Rob
04-13-2005, 01:14 PM
Good idea. I will look at the code around that and see if I can convert it to an addon :D

I will also be putting it in the 1.5 release, but an addon will hold us over until then.

ced
04-20-2005, 01:50 PM
Hello, i have an nikon D70, but i can't get all exif informations...
juste :NIKON D70 - Exposition: 1/2 sec - Ouverture: f 8 - Focale: 60 mm - Flash: Pas enclenche
Could you help please?
thanks
Cedric

Rob
04-20-2005, 02:04 PM
Hello, i have an nikon D70, but i can't get all exif informations...
juste :NIKON D70 - Exposition: 1/2 sec - Ouverture: f 8 - Focale: 60 mm - Flash: Pas enclenche
Could you help please?
thanks
CedricYou need to add the extra EXIF tags to your image_template.html. If you open that file, you will see the tags for the info that you mention above. Just add the additional tags. If you edit index.php and search for EXIF, you will see all of the tags available.

ced
04-25-2005, 01:13 AM
Thankyou, it work well now, but just one thing
fot aperture tag with <LANG_EXPOSURE_TIME> instead of <EXIF_EXPOSURE_TIME> i get :
Exposure: 1/400 sec

How to do same with EXTRA_EXIF tags?
did someone have an idea?

thankyou
Cedric

ps: did someone know what tag NIKON use for iso?
with Picture project, i get iso value, why can i get this value with pixelpost/EXIFER?

Rob
04-25-2005, 12:50 PM
The extra EXIF tags addon has no LANG modifiers, sorry. It would be easy for you to modify it for your language though, just add the language strings to your language file, look at the EXIF code in index.php and do the same in the addon...

ced
05-05-2005, 02:39 AM
oki thankyou Rob

Did you have an idea to see what are the variables employed by Nikon D70?
i ask for this because in Iviewmediapro or Nikon CApture, i get ISO value, exposure mode,... but i can't get this value in pixelpost..
May be the field name for iso is'nt same on d70 and pixelpost...


some idea?

(sorry for my bad english speaking, i'm a french, and school is far)

Rob
05-05-2005, 01:09 PM
oki thankyou Rob

Did you have an idea to see what are the variables employed by Nikon D70?
i ask for this because in Iviewmediapro or Nikon CApture, i get ISO value, exposure mode,... but i can't get this value in pixelpost..
May be the field name for iso is'nt same on d70 and pixelpost...


some idea?

(sorry for my bad english speaking, i'm a french, and school is far)I put code into extra_exif.php to allow you to experiment and see all of the EXIF values available. There are two lines;

// Uncomment the following line to see all available EXIF Values
//echo "<pre>"; print_r($exif_result); echo"</pre>";

change them to

// Uncomment the following line to see all available EXIF Values
echo "<pre>"; print_r($exif_result); echo"</pre>";

and then view your photos. At the top of your page you will see a large data printout with all of the EXIF values. Search through these values to see what you need and modify the script accordingly, or if you like, cut and paste all of the values to this forum and I will modify the addon so that everyone can benefit.

Once you have cut and pasted data for a couple of pictures, make sure you change the code back ;)