I would try:
Code: Select all
exec('convert ../image001_original.jpg -crop {$_REQUEST['width']}x{$_REQUEST['height']}+{$_REQUEST['x']}+{$_REQUEST['y']} -quality 85 ../image001.jpg');
Code: Select all
$width = $_REQUEST['width'];
$height = $_REQUEST['height'];
$x = $_REQUEST['x'];
$y = $_REQUEST['y'];
exec('convert ../image001_original.jpg -crop {$width}x{$height}+$x+$y -quality 85 ../image001.jpg');