コード例 #1
0
ファイル: controller.php プロジェクト: paisit/pyzid
 function checkImages()
 {
     // if the thumbnail generation is enabled
     if ($this->config['generate_thumbnails'] == 1) {
         // basic images params
         $img_width = $this->config['config']->gk_rockwall->gk_rockwall_image_width;
         $img_height = $this->config['config']->gk_rockwall->gk_rockwall_image_height;
         $img_bg = $this->config['config']->gk_rockwall->gk_rockwall_image_bg;
         $quality = $this->config['config']->gk_rockwall->gk_rockwall_quality;
         // check the slides
         foreach ($this->config['image_show_data'] as $slide) {
             $stretch = $slide->stretch == 'nostretch' ? false : true;
             GKIS_RockWall_Image::createThumbnail($slide->image, $this->config, $img_width, $img_height, $img_bg, $stretch, $quality);
         }
     }
 }