[eluser]hamzakhan[/eluser]
<?php
/**
*
*
*/
class Image extends Controller {
function Image()
{
parent::Controller();
}
function index()
{
$this->load->library('image_lib');
$config['image_library'] = 'gd2';
$config['source_image'] = '/server/sscart/assets/images/catagory/mypic.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 25;
$config['height'] = 25;
$config['dynamic_output'] = TRUE;
// print "<img src='/server/sscart/assets/images/catagory/mypic.jpg'>";
if ( ! $this->image_lib->resize())
{
echo $this->image_lib->display_errors();
}
print "<pre>";
print_r($config);
print_r($this->image_lib);
}
}
?>
botheration is the first rule of codeigneter
you cannot get your solution untill unless u bother
so please tell me i am bother for long time.fed up from this rubish topic.
not able to resize a simple image.
code is above
my root dir of codeigneter is /server/sscart/
assest folder is /server/sscart/assets/images/catagory/mypic.jpg
library is loaded evey thing is working fine then what is goin wrong.