Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 04-12-2005, 12:36 AM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Extra EXIF Tags for version 1.4

I wanted a bit more EXIF info, so I added the following tags. First find the line;

Code:
$iso = pullout($exif_result['SubIFD']['ISOSpeedRatings']); // not working apparently
and add the following code right after it;

Code:
$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
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #2  
Old 04-13-2005, 09:40 AM
steff Offline
pixelpost guru
 
Join Date: Feb 2005
Location: Milan, Italy
Posts: 151
Send a message via MSN to steff
thanks!

how is it possible to change it into an addon?
Reply With Quote
  #3  
Old 04-13-2005, 01:14 PM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Good idea. I will look at the code around that and see if I can convert it to an addon

I will also be putting it in the 1.5 release, but an addon will hold us over until then.
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #4  
Old 04-20-2005, 01:50 PM
ced Offline
forum loafer
 
Join Date: Apr 2005
Posts: 18
Hello

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
Reply With Quote
  #5  
Old 04-20-2005, 02:04 PM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Re: Hello

Quote:
Originally Posted by ced
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
You 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.
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #6  
Old 04-25-2005, 01:13 AM
ced Offline
forum loafer
 
Join Date: Apr 2005
Posts: 18
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?
Reply With Quote
  #7  
Old 04-25-2005, 12:50 PM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
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...
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
  #8  
Old 05-05-2005, 02:39 AM
ced Offline
forum loafer
 
Join Date: Apr 2005
Posts: 18
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)
Reply With Quote
  #9  
Old 05-05-2005, 01:09 PM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Quote:
Originally Posted by ced
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;

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

Code:
  // 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
__________________
shifted*exposure powered by PixelPost 1.4
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:04 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs