Welcome Guest, Not a member yet? Register   Sign In
create more than 2 thumbnails using ci
#3

[eluser]cahva[/eluser]
Does it create the thumbnails if you use this:
Code:
function _create_thumbnails($filename)
{
    $config['image_library'] = 'gd2';
    $config['source_image'] = 'upload/'.$filename;
    $config['create_thumb'] = TRUE;
    $config['maintain_ratio'] = TRUE;
    $config['new_image']='upload/thumb/';
    $config['width'] = 154;
    $config['height'] = 121;
    $this->load->library('image_lib', $config);
    $this->image_lib->resize();

    $this->image_lib->clear(); // This is used normally if you do images in a loop

    $config['image_library'] = 'gd2';
    $config['source_image'] = 'upload/'.$filename;
    $config['create_thumb'] = TRUE;
    $config['maintain_ratio'] = TRUE;
    $config['new_image']='upload/thumb/featured/';
    $config['width'] = 154;
    $config['height'] = 121;
    $this->load->library('image_lib', $config);
    $this->image_lib->resize();
}


Messages In This Thread
create more than 2 thumbnails using ci - by El Forum - 04-28-2010, 01:52 AM
create more than 2 thumbnails using ci - by El Forum - 04-28-2010, 01:56 AM
create more than 2 thumbnails using ci - by El Forum - 04-28-2010, 03:11 AM
create more than 2 thumbnails using ci - by El Forum - 04-28-2010, 03:21 AM
create more than 2 thumbnails using ci - by El Forum - 05-03-2010, 01:29 AM
create more than 2 thumbnails using ci - by El Forum - 05-06-2010, 03:08 AM
create more than 2 thumbnails using ci - by El Forum - 12-27-2010, 10:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB