PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Danish Satti   Upload and Crop   test.php   Download  
File: test.php
Role: Auxiliary script
Content type: text/plain
Description: Example script
Class: Upload and Crop
Validate and crop uploaded images files
Author: By
Last change: Update of test.php
Date: 11 months ago
Size: 418 bytes
 

Contents

Class file image Download
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<?php


        $img_r
= imagecreatefromjpeg($this->src);
       
       
$this->dest = ImageCreateTrueColor( $this->targ_w, $this->targ_h );
       
       
imagecopyresampled($this->dest,$img_r,0,0,$x,$y,$this->targ_w,$this->targ_h,$w,$h);
       
        if(
imagejpeg($this->dest, $output, $this->jpeg_quality))

?>