X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_img.php;h=e2e0325eb2271b288b01db982d529e091c679e2f;hp=986fbccbb251a20930bccdf3abacfd4cfbb9189e;hb=c54dcf670a6ea58d885eb143c0eac8d90d3020f7;hpb=abc9aff6834b750927ebcf6f7644479a839c3a7f diff --git a/phpfspot_img.php b/phpfspot_img.php index 986fbcc..e2e0325 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -22,10 +22,7 @@ class PHPFSPOT_IMG { 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'];