Location: PHPKode > scripts > Resize > resize/resize.php
<?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(500, 500);
    $obj->make();
}
catch (Exception $e) {
    die($e);
}
?>
Return current item: Resize