Olympus-OM
[Top] [All Lists]

[OM] EXIF data in Singapore [was web site recommendations]

Subject: [OM] EXIF data in Singapore [was web site recommendations]
From: Moose <olymoose@xxxxxxxxx>
Date: Sat, 15 Mar 2008 19:32:33 -0700
I finally got around to trying this. It works great.

Thanks,
  Moose

Dan Mitchell wrote:
> ......
>   1: get exifer, URL is
> http://www.offsky.com/software/exif/index.php
>
>   2: extract makers/ and exif.php to [singapore]/includes
>
>   3: in image.tpl.php, add this at the appropriate place. Tweak to 
> change layout/formatting as desired. I put it after the sgContent div, 
> for what it's worth.
>
> <?php
> require_once('includes/exif.php');
> $exifdata = read_exif_data_raw($sg->image->realPath(), 0);
> if ($exifdata['IFD0']['Make'] != "")
> {
>    $cammake = $exifdata['IFD0']['Make'];
>    $cammodel = $exifdata['IFD0']['Model'];
>    // Remove trailing ? from camera info. Why is it there?
>    $cammake = substr($cammake, 0, -1);
>    $cammodel = substr($cammodel, 0, -1);
>
>    echo "<p>Camera: " . $cammake . " " .  $cammodel . " ";
>    echo "Focal length: " . $exifdata['SubIFD']['FocalLength'] . " ";
>    echo "Exposure time: " . $exifdata['SubIFD']['ExposureTime'] . " ";
>    echo "f stop: " . $exifdata['SubIFD']['FNumber'] . "</p>";
> }
>
> ?>
>
>   That may seem like weird bits of info to be pulling out, but if you 
> read "f stop", for instance, you get things like "28/10" -- which is 
> correct, but not what I was expecting.
>
>   If you want a dump of everything to poke around in, this'll get it: 
> print_r($exifdata);


==============================================
List usage info:     http://www.zuikoholic.com
List nannies:        olympusadmin@xxxxxxxxxx
==============================================

<Prev in Thread] Current Thread [Next in Thread>
Sponsored by Tako
Impressum | Datenschutz