我希望图像宽度和高度250,同时图像调整为250X150?但为什么? 这是我的控制器代码
android:canPerformGestures="true"
答案 0 :(得分:0)
感谢 Adrianopolis ,它有效。 我已更改此代码
$config = array(
'image_library' => 'gd2',
'source_image' => $data['full_path'],
'maintain_ratio' => TRUE,
'width' => 250,
'height' => 250,
);
$this->image_lib->clear();
$this->image_lib->initialize($config);
$this->image_lib->resize();
Into
$config = array(
'image_library' => 'gd2',
'source_image' => $data['full_path'],
'maintain_ratio' => FALSE,
'width' => 250,
'height' => 250,
);
$this->image_lib->clear();
$this->image_lib->initialize($config);
$this->image_lib->resize();