|
function do_image($width=0,$height=0,$source_image_path=null){
$config = null;
$config['image_library'] = 'gd2';
$config['source_image'] = $source_image_path;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = $width;
$config['height'] = $height;
$config['quality'] = "100%";
$config['thumb_marker'] = '';
$this->load->library('image_lib');
$this->image_lib->clear();
$this->image_lib->initialize($config);
if (!$this->image_lib->resize())
echo $this->image_lib->display_errors();
}
do_image(169,200,$data['full_path']);
请问为什么不能按我所要求的来切图片.第次高都达不到200,宽可以达的到169.
这是为什么啊.是不是我的CONFIG写错了 |
|