Welcome Guest, Not a member yet? Register   Sign In
Resize image.
#1

[eluser]Unknown[/eluser]
Hello I test this simple code.
Code:
$config['image_library'] = 'gd2';
        $config['source_image'] = 'images/7.jpg';
        $config['create_thumb'] = TRUE;
        $config['maintain_ratio'] = TRUE;
        $config['width'] = 75;
        $config['height'] = 75;

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

        $this->image_lib->resize();
Original size is 1280x800px
After I test this code my new picture size is 75x49.


I would like to resize this image width = 75 and height = 75.
I want to resize fixed size on image, not dynamic.

Thank you.

P.S Sorry, please move this topic in Ignited Code forums. thank you.




Theme © iAndrew 2016 - Forum software by © MyBB