No photos of Codeignither
-
Codeignither has a photo lab. Used to create thumb.
Code down.
$config['image_library'] = 'gd2'; // выбираем библиотеку $config['source_image'] = $uploadfile; $config['create_thumb'] = TRUE; // ставим флаг создания эскиза $config['maintain_ratio'] = TRUE; // сохранять пропорции $config['width'] = 350; // и задаем размеры $config['height'] = 278; $this->load->library('image_lib', $config); // загружаем библиотеку
if ( ! $this->image_lib->resize()) {
echo $this->image_lib->display_errors();
}
It's all right. But the problem is, if I'm uploading some photos, like four, it's done.
thumb
It's only the first photo, although I'm on the list, I'm taking it out.$config['source_image']
I don't know if he's getting the list files.Everything's going to be fine, but it's only doing the first photo at all.
-
If a library is used at the same time (in one or two)
image_lib
After all,thumb
function$this->image_lib->clear();