PHP Classes

File: examples/save.php

Recommend this page to a friend!
  Classes of Nicholas Oliveira   Image Wrapper   examples/save.php   Download  
File: examples/save.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Image Wrapper
Crop and resize PNG, JPEG and GIF images
Author: By
Last change: Update of examples/save.php
Date: 9 months ago
Size: 271 bytes
 

Contents

Class file image Download
<?php

include("../cbImage.php");
include(
"../ImageResizer.class.php");
$c = new Image("cars.jpg");
$r = new ImageResizer($c);

//print_r($c->getType());


//$r->scalePercentage(80);
$r->Save("test.jpg",100) // save with name test.jpg with 100% of quality original



?>