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

[eluser]Usama Aziz[/eluser]
Hi everyone.
i am facing a problem to re-size upload image height and width.

Code:
$extension = substr(strrchr($current_image, '.'), 1);
$time = date("fYhis");
$new_image = $time . "." . $extension;
$destination="./uploads/".$new_image;


$config['image_library'] = 'gd2';
$config['source_image'] = $destination;
$config['create_thumb'] = TRUE;
$config['new_image'] = 'thumbs/'.$new_image;
$config['maintain_ratio'] = TRUE;
$config['width']  = 75;
$config['height'] = 50;

$this->image_lib->initialize($config);

$this->image_lib->resize();

after this there is watermark code. watermark code is working properly. the re-seize code copy the image to thumbs folder but didnt re-size.

Thanks & Regards,
-Usama Aziz




Theme © iAndrew 2016 - Forum software by © MyBB