我正在使用Codeigniter 2.0.2 我想要图像尺寸60x70此代码没有给出任何错误并生成 宽度 = 60 和高度 = 44的图像有 什么问题?
$config['source_image'] = $preview_path;
$config['new_image'] = $dir_small_prev.$file_namee;
$config['maintain_ratio'] = TRUE;
$config['master_dim'] = 'width';
$config['width'] = 60;
$config['height'] = 70;
$config['image_library'] = 'gd2';
$config['quality'] = 100;
$this->image_lib->initialize($config);
if ( ! $this->image_lib->resize()){
echo $this->image_lib->display_errors();