Welcome Guest, Not a member yet? Register   Sign In
A question about image resize
#1

[eluser]alanees[/eluser]
Hello all

I try use next code fro image resize :

in controller page :
Code:
function index()

    {


                $path = 'uploads/myimage.jpg';

                $config['image_library'] = 'gd2';
                $config['source_image'] = $path;
                $config['create_thumb'] = TRUE;
                $config['maintain_ratio'] = TRUE;
                $config['width'] = 300;
                $config['height'] = 160;

                $this->load->library('image_lib', $config);
                $this->image_lib->resize();





        $data['css'] = $this->css;


        $this->load->view('index',$data);

    }
but i need know what i must to write into view page for image show with new width & height


Messages In This Thread
A question about image resize - by El Forum - 12-09-2010, 01:45 AM
A question about image resize - by El Forum - 12-09-2010, 02:19 AM
A question about image resize - by El Forum - 12-09-2010, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB