Welcome Guest, Not a member yet? Register   Sign In
Image library: resizing two or more images
#4

[eluser]tokyotech[/eluser]
markup2go,

My new code just has one line extra (the clear call), but it still doesn't work. I also tried printing out errors, but none were reported.

Code:
$config['image_library']  = 'gd2';
$config['source_image']   = $fullPath;
$config['create_thumb']   = true;
$config['maintain_ratio'] = true;
$config['width']          = 256;
$config['height']         = 256;
$config['master_dim']     = 'width';
$config['thumb_marker']   = IMAGE_LARGE;

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

$config['width']        = 128;
$config['height']       = 128;
$config['thumb_marker'] = IMAGE_SMALL;

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

nkm82,

I would like to reuse the same array because most of the info remains the same. The only differences are filename and size.


Messages In This Thread
Image library: resizing two or more images - by El Forum - 11-27-2009, 10:14 PM
Image library: resizing two or more images - by El Forum - 11-28-2009, 11:34 AM
Image library: resizing two or more images - by El Forum - 11-28-2009, 01:00 PM
Image library: resizing two or more images - by El Forum - 11-28-2009, 02:42 PM
Image library: resizing two or more images - by El Forum - 11-28-2009, 02:55 PM
Image library: resizing two or more images - by El Forum - 11-28-2009, 03:01 PM
Image library: resizing two or more images - by El Forum - 11-28-2009, 03:35 PM
Image library: resizing two or more images - by El Forum - 04-09-2010, 09:44 AM
Image library: resizing two or more images - by El Forum - 04-09-2010, 09:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB