additional resolution for bubble images
[phpfspot.git] / phpfspot_img.php
index 986fbccbb251a20930bccdf3abacfd4cfbb9189e..e2e0325eb2271b288b01db982d529e091c679e2f 100644 (file)
@@ -22,10 +22,7 @@ class PHPFSPOT_IMG {
 
    public function show($idx, $width = "")
    {
 
    public function show($idx, $width = "")
    {
-      $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->gen_thumbs($idx);
 
       if($width == "")
          $fullpath = $this->parent->translate_path($details['directory_path'])  ."/". $details['name'];
 
       if($width == "")
          $fullpath = $this->parent->translate_path($details['directory_path'])  ."/". $details['name'];