set width on navigation cells
[phpfspot.git] / phpfspot.class.php
index c783939f894519dd00cbabdd07c44403e71763c1..e4ca4ffa9cde084ac3b7d6561e566a0e18e1994c 100644 (file)
@@ -103,7 +103,10 @@ 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']);