include ('imageResizer.php');
try{
$imageResizer = new ImageResizer('./girl.jpg', 200, 200, './girl_resized.jpg');
echo('<img src="' . $imageResizer -> getPath() . '"/><br /><br />');
echo('<img src="' . $imageResizer -> getNewPath() . '"/><br />');
echo('<pre>');
echo("Original dimensions:\n");
print_r($imageResizer -> getOriginalDimensions());
echo("\nNew dimensions:\n");
print_r($imageResizer -> getNewDimensions());
echo('</pre>');
}
catch(Exception $ex){
echo($ex -> getMessage());