[eluser]dennismonsewicz[/eluser]
I am trying to watermark some images in my upload script but it seems to not be working...
Code:
$this->load->library('image_lib');
$file = $this->input->post('filearray');
$data['json'] = json_decode($file);
$image = $data['json']->{'file_name'};
$ext = $data['json']->{'file_ext'};
$config = array();
$config['source_image'] = $data['json']->{'file_path'};
$config['wm_text'] = 'Watermark text';
$config['wm_type'] = 'text';
$config['wm_font_path'] = '/fonts/texb.ttf';
$config['wm_font_size'] = '24';
$config['wm_font_color'] = 'ffffff';
$config['wm_vrt_alignment'] = 'bottom';
$config['wm_hor_alignment'] = 'center';
$this->image_lib->initialize($config);
$this->image_lib->watermark();
$this->load->view('admin/uploadify', $data);
I am not sure why its not working... the script uploads the image but does not do the watermarking... any ideas on why this won't work?