summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-09 06:58:13 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-09 06:58:13 +0000
commita8f486923b8243347ac658a9a7148939f6c0411d (patch)
treeedf1ba9ded9863f22da2f3b4d39b194401447899 /phpfspot.class.php
parente1117268a48440364cc10191a40eee45b8f514bd (diff)
rename image resize function
git-svn-id: file:///var/lib/svn/phpfspot/trunk@67 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index a936eec..948a87e 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -287,7 +287,7 @@ class PHPFSPOT {
} // showCredits()
- public function resize_image($image, $width)
+ public function create_thumbnail($image, $width)
{
// if thumbnail already exists, don't recreate it
if(file_exists(dirname($image) ."/thumbs/". $width ."_". basename($image)))
@@ -337,7 +337,7 @@ class PHPFSPOT {
imagedestroy($src_img);
}
- } // resize_image()
+ } // create_thumbnail()
public function get_meta_informations($file)
{
@@ -384,7 +384,7 @@ class PHPFSPOT {
/* create thumbnails for the requested resolutions */
foreach(Array($this->cfg->thumb_width, $this->cfg->photo_width) as $resolution) {
if($fromcmd) print " ". $resolution ."px";
- $this->resize_image($full_path, $resolution);
+ $this->create_thumbnail($full_path, $resolution);
}
if($fromcmd) print "\n";