Welcome Guest, Not a member yet? Register   Sign In
Trouble with image resize library.
#1

[eluser]JasonS[/eluser]
Code:
$config['image_library'] = 'GD';
$config['source_image'] = $upload_dir.'portfolio/'.$this->upload->file_name;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
$this->load->library('image_lib', $config);
            
$this->image_lib->resize();

I am trying to create a resized image which will be called imagename_thumb.ext

When I run the above code. Nothing happens, there is no error and certainly no image is created.

Am I missing something here?
#2

[eluser]Pascal Kriete[/eluser]
Do you have 777 permissions to the folder?
Does the upload work by itself?
Does it work with a static path/image (no upload)?
#3

[eluser]gunter[/eluser]
there is a method in the library to show errors.... look at that...
to see if the path is right I like to use the directory helper... - if I can read the directory then everything is ok...




Theme © iAndrew 2016 - Forum software by © MyBB