move function code into PHPFSPOT class
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 06:54:58 +0000 (06:54 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 06:54:58 +0000 (06:54 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@65 fa6a889d-dae6-447d-9e79-4ba9a3039384

gen_thumbs.php

index a0aaa258961de8c17f014754cd4a5c150d55d466..1912a54b8f3a44deb02ee154e872090573f72f39 100755 (executable)
@@ -4,22 +4,6 @@
 require_once "phpfspot.class.php";
 
 $fspot = new PHPFSPOT;
 require_once "phpfspot.class.php";
 
 $fspot = new PHPFSPOT;
-
-$all = $fspot->getAllTagPhotos();
-
-foreach($all as $photo)
-{
-   $details = $fspot->get_photo_details($photo);
-
-   print "Image ". $details['name'] ." Thumbnails:";
-
-   foreach(Array($fspot->cfg->thumb_width, $fspot->cfg->photo_width) as $resolution) {
-      print " ". $resolution ."px";
-      $fspot->resize_image($fspot->translate_path($details['directory_path'])  ."/". $details['name'], $resolution);
-   }
-
-   print "\n";
-
-}
+$fspot->gen_thumbs('fromcmd');
 
 ?>
 
 ?>