some nice icons for available and selected tags
[phpfspot.git] / phpfspot.class.php
index 641cc0efbd215feb6d8fb08473e4340837b3f69b..de2adc086f001265f2d53123c7048493f10f187d 100644 (file)
@@ -102,9 +102,16 @@ class PHPFSPOT {
 
 
       $details = $this->get_photo_details($photo);
+      $meta = $this->get_meta_informations($this->translate_path($details['directory_path']) ."/". $details['name']);
+      $info = getimagesize($this->translate_path($details['directory_path']) ."/thumbs/". $this->cfg->photo_width ."_". $details['name']);
 
+      $this->tmpl->assign('width', $info[0]);
+      $this->tmpl->assign('height', $info[1]);
+      $this->tmpl->assign('c_date', $meta['DateTime']);
+      $this->tmpl->assign('madewith', $meta['Make'] ." ". $meta['Model']);
       $this->tmpl->assign('image_name', $details['name']);
       $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&width=". $this->cfg->photo_width);
+      $this->tmpl->assign('image_url_full', 'phpfspot_img.php?idx='. $photo);
 
       if($previous_img) {
          $this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
@@ -329,6 +336,13 @@ class PHPFSPOT {
 
    } // resize_image()
 
+   public function get_meta_informations($file)
+   {
+
+      return exif_read_data($file);
+
+   } // get_meta_informations()
+
 }
 
 ?>