Pode perceber que coloquei r um if para ver se retornava erro caos fosse a biblioteca ausente, porém não retorna nada.
foreach ($_FILES as $field => $file) {
if ($file['error'] == 0) {
if ($this->upload->do_upload($field)) {
$data = $this->upload->data();
$dados['imagem'] = $data['file_name'];
#GERANDO IMAGENS THUMBS
$config['source_image']$img_config['wm_type'] = $data['full_path']; 'overlay';
$config['new_image']$img_config['wm_overlay_path'] = PATH_FRONT_END_UPLOAD . 'produtos/thumbs'usuarios/';
$config['create_thumb'] = false;logo.png';
$config['maintain_ratio']$img_config['wm_x_transp'] = true;20;
$config['width']$img_config['wm_y_transp'] = 75;10;
$config['height']$img_config['wm_opacity'] = 50;
$config['wm_text'] = 'marca dagua lorem ipsum';
$config['wm_type'] = 'text';
$config['wm_font_size'] = '16';
$config['wm_font_color'] = 'ffffff';
$config['wm_vrt_alignment']$img_config['wm_vrt_alignment'] = 'bottom';
$config['wm_hor_alignment']$img_config['wm_hor_alignment'] = 'center';
$config['wm_padding']$config['source_image'] = '20';
$data['full_path']; $this->image_lib->initialize($config);
$this->image_lib->watermark();
if (!$this->image_lib->watermark()) {
echo $this->image_lib->display_errors();
}
$this->image_lib->resize>clear();
#GERANDO IMAGENS MEDIUM
$config['source_image'] = $data['full_path'];
$config['new_image'] = PATH_FRONT_END_UPLOAD . 'produtos/medium/';
$config['create_thumb'] = false;
$config['maintain_ratio'] = true;
$config['width'] = 320;
$config['height'] = 240;
$config['wm_text'] = 'marca dagua lorem ipsum';
$config['wm_type'] = 'text';
$config['wm_font_size'] = '16';
$config['wm_font_color'] = 'ffffff';
$config['wm_vrt_alignment'] = 'bottom';
$config['wm_hor_alignment'] = 'center';
$config['wm_padding'] = '20';
$this->image_lib->initialize($config);
$this->image_lib->watermark();
$this->image_lib->resize();
} else {
$errors = $this->upload->display_errors();
die($errors);
}
}
}