Welcome Guest, Not a member yet? Register   Sign In
[RESOLVED]not looping image resize
#7

[eluser]Unknown[/eluser]
Here you go, it should work for you:
Code:
$this->load->library('image_lib');
            foreach($query->result() as $row)
            {
                $config['image_library'] = 'gd2';
                $config['source_image'] = $row->file_name;
                $config['create_thumb'] = TRUE;
                $config['maintain_ratio'] = TRUE;
                $config['new_image'] = './system/application/uploads/imagem/thumbs';
                $config['width'] = 100;
                $config['height'] = 100;

                $this->image_lib->clear();
                $this->image_lib->initialize($config);
                $this->image_lib->resize();
            }


Messages In This Thread
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:22 AM
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:28 AM
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:33 AM
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:35 AM
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:45 AM
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:46 AM
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:47 AM
[RESOLVED]not looping image resize - by El Forum - 01-14-2011, 06:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB