if we specify the image size before, the screen doesn't flickering
[phpfspot.git] / gen_thumbs.php
1 #!/usr/bin/php
2 <?php
3
4 require_once "phpfspot.class.php";
5
6 $fspot = new PHPFSPOT;
7
8 $all = $fspot->getAllTagPhotos();
9
10 foreach($all as $photo)
11 {
12    $details = $fspot->get_photo_details($photo);
13
14    print "Image ". $details['name'] ." Thumbnails:";
15
16    foreach(Array($fspot->cfg->thumb_width, $fspot->cfg->photo_width) as $resolution) {
17       print " ". $resolution ."px";
18       $fspot->resize_image($fspot->translate_path($details['directory_path'])  ."/". $details['name'], $resolution);
19    }
20
21    print "\n";
22
23 }
24
25 ?>