Welcome Guest, Not a member yet? Register   Sign In
The problem with image_lib
#1

[eluser]codeDeveloper[/eluser]
Hi,

I use image_lib to create preview image.

Code:
$config['image_library'] = 'gd2';
$config['source_image'] = $fileName;
$config['maintain_ratio'] = TRUE;
$config['new_image'] = 'path';
$config['width'] = 640;
$config['height'] = 480;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
$this->image_lib->clear();

If the image is less than 640 * 480, it stretches to 640 * 480, how fix this problem?


Unfortunately, the solutions are not found in the documentation.


Messages In This Thread
The problem with image_lib - by El Forum - 01-06-2009, 01:33 PM
The problem with image_lib - by El Forum - 01-06-2009, 07:25 PM
The problem with image_lib - by El Forum - 01-07-2009, 03:34 AM
The problem with image_lib - by El Forum - 01-07-2009, 08:13 AM
The problem with image_lib - by El Forum - 01-07-2009, 11:37 AM
The problem with image_lib - by El Forum - 01-07-2009, 12:05 PM
The problem with image_lib - by El Forum - 01-07-2009, 12:06 PM
The problem with image_lib - by El Forum - 01-07-2009, 12:17 PM
The problem with image_lib - by El Forum - 01-07-2009, 01:31 PM
The problem with image_lib - by El Forum - 01-24-2009, 03:40 PM
The problem with image_lib - by El Forum - 01-24-2009, 04:43 PM
The problem with image_lib - by El Forum - 01-24-2009, 06:07 PM
The problem with image_lib - by El Forum - 08-04-2009, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB