I am using a nice little script I came across to crop images (here are the files: http://php.amnuts.com/index.php?do=view&id=12 - Demo: http://php.amnuts.com/demos/crop-canvas/interactive.php)
I now have it working ok, on the final stage it is writing the image out to the screen in the code here:
Code: Select all
require('class.cropinterface.php');
$ci =& new CropInterface(true);
if (isset($_GET['file'])) {
$ci->loadImage($_GET['file']);
$ci->cropToDimensions($_GET['sx'], $_GET['sy'], $_GET['ex'], $_GET['ey']);
$ci->showImage('png', 100);
exit;
}Any help is much appreciated.
Thanks
Harley