Welcome Guest, Not a member yet? Register   Sign In
Image resize not working for multiple images
#1

[eluser]Arockia Raj[/eluser]
Hello,

I used the below code for resizing the image when doing multiple image uploading
Code:
$config['image_library'] = 'gd2';
                                        $config['source_image'] = "series/$filepath";
                                        $config['create_thumb'] = TRUE;
                                        $config['thumb_marker'] = "_thumb";
                                        $config['maintain_ratio'] = TRUE;
                                        $config['width'] = 100;
                                        $config['height'] = 60;
                                        $config['new_image']="series2/";
                                        
$this->load->library('image_lib', $config);
                                        
                                        
$this->image_lib->resize();
                                        
$this->image_lib->clear("$config");

But it is resizing only one image.

I think
Code:
$this->image_lib->clear("$config")
not working.

Plz help me

Regards,
Arockia Raj




Theme © iAndrew 2016 - Forum software by © MyBB