<?PHP
//include class file
require('class.image-resize.php');
$obj = new img_opt();
// set maximum width within wich the image should be resized
$obj->max_width(500);
// set maximum height within wich the image should be resized
// for example size of the area in which image to be displayed
$obj->max_height(500);
$obj->image_path('example.jpg');
// call the functio to resize the image
$obj->image_resize();
?>
|