PHP Classes

File: example.txt

Recommend this page to a friend!
  Classes of Aderbal Nunes   Imagem Resize   example.txt   Download  
File: example.txt
Role: Example script
Content type: text/plain
Description: example
Class: Imagem Resize
Resize images keeping the proportions
Author: By
Last change:
Date: 17 years ago
Size: 433 bytes
 

Contents

Class file image Download
// exemplo de utilização (use example)

<?php
require("ImageOperations.inc.php");

// imagem passada pelo navegador ( image passed for the broswer )
$img = $_GET["url"];

// fator a ser redimensionado ( factor to resize )
$xFator = $_GET["tam"];

// crio um novo objeto ( an new object );
$image = new ImageOperations;


// implemento o método ( implementation of the method )
$image->CriaThumb($img, $xFator);

?>