summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-08 15:22:47 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-08 15:22:47 +0000
commitae3e56961cdc914f315c54b1e2918aa35b638221 (patch)
treed1f176b4f3aeea6abeb2e7eb6396056cbe6d760c /phpfspot.class.php
parent2ce4888da55447df8e58c241020bbfdae72cbd56 (diff)
if we specify the image size before, the screen doesn't flickering
when the next image gets loaded git-svn-id: file:///var/lib/svn/phpfspot/trunk@53 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index c783939..e4ca4ff 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -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']);