%PDF- %PDF-
Direktori : /var/www/pjc/public/assets/cropping/ |
Current File : /var/www/pjc/public/assets/cropping/process.php |
<?php header('Content-Type: image/jpeg'); include("image_resizing.php"); $imgr = new imageResizing(); if(isset($_POST['cropping-image']) && $_POST['cropping-image'] != NULL){ $image = "/your/path/to/app/".$_POST['cropping-image']; $imgr->load($image); $imgX = intval($_POST['imgX']); $imgY = intval($_POST['imgY']); $imgW = intval($_POST['imgW']); $imgH = intval($_POST['imgH']); /*echo $imgX." ".$imgY." ".$imgW." ".$imgH;*/ $imgr->resize($imgW,$imgH,$imgX,$imgY); $imgr->output($imgr->image_type); } ?>