Welcome Guest, Not a member yet? Register   Sign In
Can't create thumbs using Image Manipulation class
#4

[eluser]chitoso[/eluser]
rom what I've seen in the docs (http://ellislab.com/codeigniter/user-gui...e_lib.html):
"If only the path is specified, the new image will be placed in the destination with the same name as the original.", so I assume this code should work.

Code:
$config_image['image_library'] = 'gd';
$config_image['source_image'] = $data['full_path'];
$config_image['new_image'] = 'uploads/proyectos/thumbs/';
$config_image['create_thumb'] = TRUE;
$config_image['maintain_ratio'] = TRUE;
$config_image['width'] = 120;

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

if (!$this->image_lib->resize()) {
    $this->session->set_flashdata('message', $this->image_lib->display_errors());
}

The weird thing is that it fails silently, no errors whatsoever. Any clues?


Messages In This Thread
Can't create thumbs using Image Manipulation class - by El Forum - 07-10-2010, 05:52 PM
Can't create thumbs using Image Manipulation class - by El Forum - 10-02-2010, 03:51 PM
Can't create thumbs using Image Manipulation class - by El Forum - 10-02-2010, 06:34 PM
Can't create thumbs using Image Manipulation class - by El Forum - 10-03-2010, 02:55 PM
Can't create thumbs using Image Manipulation class - by El Forum - 10-03-2010, 03:19 PM
Can't create thumbs using Image Manipulation class - by El Forum - 10-03-2010, 03:31 PM
Can't create thumbs using Image Manipulation class - by El Forum - 12-21-2010, 10:57 PM
Can't create thumbs using Image Manipulation class - by El Forum - 12-22-2010, 12:04 AM
Can't create thumbs using Image Manipulation class - by El Forum - 12-24-2010, 02:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB