Welcome Guest, Not a member yet? Register   Sign In
image_lib doesn't create a thumbnail
#1

[eluser]Unknown[/eluser]
Hello everybody,

I'm using this code to create thumbnails, using images wich are already on the server.

Code:
$config['image_library'] = 'gd2';
                $config['quality'] = '100';
                $config['source_image'] = $data['upload_data']['full_path'];
                $config['create_thumb'] = TRUE;
                $config['maintain_ratio'] = TRUE;
                $config['master_dim'] = height;
                
                $config['width'] = 60;
                $config['height'] = 60;

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

My Problem is, that if the picture on the server is too large (over 1500 px) the code doesn't create the thumbnail.

Can anyone help me?

THX
Kevin
#2

[eluser]obobo[/eluser]
i had a similar problem once, and it turned out that i needed to increase the memory in php.ini from 8MB to 16MB to be able to handle the larger images.




Theme © iAndrew 2016 - Forum software by © MyBB