请不要创建缩略图我在考虑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();
}
我认为你需要扩展图像库检查库的调整大小方法$ this-> orig_width> $ this-> width或height然后你ne编辑调整它的大小。它会工作 – umefarooq
好吧,将尝试它。 – vzhen
@umefarooq你能再次看到我编辑的问题吗? – vzhen