rename image resize function
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 06:58:13 +0000 (06:58 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 06:58:13 +0000 (06:58 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@67 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
phpfspot_img.php

index a936eecba35b32eaa7c1822707f2e73f2cd60ebd..948a87e56fb3cd9463e5bab647e3093fcfcb027e 100644 (file)
@@ -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";
index 986fbccbb251a20930bccdf3abacfd4cfbb9189e..4bafa42bbf8a3ef6c1b532b6a5395bb8e7f4042e 100644 (file)
@@ -25,7 +25,7 @@ class PHPFSPOT_IMG {
       $details = $this->parent->get_photo_details($idx);
 
       foreach(Array($this->parent->cfg->thumb_width, $this->parent->cfg->photo_width) as $resolution)
-         $this->parent->resize_image($this->parent->translate_path($details['directory_path'])  ."/". $details['name'], $resolution);
+         $this->parent->create_thumbnail($this->parent->translate_path($details['directory_path'])  ."/". $details['name'], $resolution);
 
       if($width == "")
          $fullpath = $this->parent->translate_path($details['directory_path'])  ."/". $details['name'];