View Full Version : exif options
Piercey
12-03-2004, 06:43 AM
I'm curious what all the exif options that can be displayed? Right now I have
<EXIF_CAPTURE_DATE>
<EXIF_CAMERA_MODEL>
<EXIF_EXPOSURE_TIME>
<EXIF_APERTURE><br>
<EXIF_FOCAL_LENGTH>
Is there a way I can show what lens I used?
Thanks!
-Mike
pixelpunk
12-03-2004, 08:53 AM
I have tried that without luck.
With exif it pretty much depends on what camera you're using as they are different for each sodding camera, it seems.
You can test it yourself, to see what's available.
Create a new document. Lets call it exif.php.
<?php
$testimage = "images/animagehere.jpg";
$result = exif_read_data($testimage,0,true);
foreach ($result as $key => $section) {
* *foreach ($section as $name => $val) {
* * * *echo "$key.$name: $val<br />";
* *}
}
?>
That should print out all available fields that you can use.
// punk
Anonymous
12-03-2004, 02:35 PM
Check out exifer. It groks more than PHP's built-in exif module. You can get LongFocalLength and ShortFocalLength and use those to lookup which lens you used.
Of course if you have more than one lens with the same range but different aperture or even brand then you'll need to do a bit more coding....
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.