Login   Register  
PHP Classes
elePHPant
Icontem

File: resize.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cesar R Bagatoli  >  Resize  >  resize.php  >  Download  
File: resize.php
Role: Example script
Content type: text/plain
Description: Arquivo para testar a Classe
Class: Resize
Resize and place watermarks on images
Author: By
Last change:
Date: 7 years ago
Size: 487 bytes
 

Contents

Class file image Download
<?php
include_once('resize.class.php');

try {
    
$obj = new Resize("c:/web/Artigo/teste.jpg");
    
$obj->setNewImage("c:/web/Artigo/teste2.jpg");
    
$obj->setWaterMarkImage("c:/web/Artigo/teste2.gif");
    
$obj->setWaterMarkOpacity(50);
    
$obj->setWaterMarkPosition('topCenter');
    
$obj->setProportionalFlag('H');
    
$obj->setProportional(1);
    
$obj->setDegrees(90);
    
$obj->setNewSize(500500);
    
$obj->make();
}
catch (
Exception $e) {
    die(
$e);
}
?>