Ejemplo n.º 1
0
 public static function make_thumbnail($raw_file_path, $thumbnail_file_path, $size_string)
 {
     $size_items = self::conv_size_str_to_array($size_string);
     return Util_file::resize($raw_file_path, $thumbnail_file_path, $size_items['width'], $size_items['height'], $size_items['resize_type']);
 }
Ejemplo n.º 2
0
 private function make_image($original_file_path, $target_file_dir, $target_filename)
 {
     $target_file_path = $target_file_dir . $target_filename;
     Site_Upload::check_and_make_uploaded_dir($target_file_dir);
     Util_file::resize($original_file_path, $target_file_path, $this->width, $this->height, $this->resize_type);
 }