From ae3e56961cdc914f315c54b1e2918aa35b638221 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Fri, 8 Jun 2007 15:22:47 +0000 Subject: [PATCH 1/1] 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 --- phpfspot.class.php | 3 +++ templates/single_photo.tpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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']); diff --git a/templates/single_photo.tpl b/templates/single_photo.tpl index 716a78e..7935fef 100644 --- a/templates/single_photo.tpl +++ b/templates/single_photo.tpl @@ -19,7 +19,7 @@ { else } { /if } - + -- 2.25.1