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:
Date: 7 years 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))

?>

For more information send a message to info at phpclasses dot org.