📜  codeigniter 中的 imagelib thourgh 类 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:29.240000             🧑  作者: Mango

代码示例1
$config['image_library'] = 'gd2';
$config['source_image'] = '/path/to/image/mypic.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width']         = 75;
$config['height']       = 50;

$this->load->library('image_lib', $config);

$this->image_lib->resize();