我在想如果源图像宽度/高度小于您设置的拇指宽度/高度,codeigniter 图像类是否具有内置或自动跳过创建拇指。
如果不是,如何处理?
我已经生成了缩略图,但是如果我上传了一个宽度:200 像素高度:200 像素的图像并且我的拇指设置是宽度:400 像素高度:400 像素,拇指仍然会创建并使拇指看起来很糟糕。
已编辑
$config['config_here'];
$this->load->library('image_lib', $config);
if($arr['image_width'] <= $config['width'] && $arr['image_height'] <= $config['height']) {
//I don't want to resize the image BUT I want it to copy to a filename with thumb_marker
//How to do it because I already have the $config['create_thumb'] = TRUE; at above.
}else{
$this->image_lib->resize();
}