PHP Classes

File: samples.php

Recommend this page to a friend!
  Classes of Mitchelle Pascual  >  Image Crusher  >  samples.php  >  Download  
File: samples.php
Role: Example script
Content type: text/plain
Description: Example usages
Class: Image Crusher
Compress PNG or JPEG images with external programs
Author: By
Last change:
Date: 6 years ago
Size: 376 bytes


Class file image Download
require 'ImageCrusher.php';

//Simple usage (png)
//$crusher = new ImageCrusher( 'images/php-png.png', 'images/php-png_c.png' );

//Simple usage (jpg)
//$crusher = new ImageCrusher( 'images/php-jpg.jpg', 'images/php-jpg_c.jpg' );

// Batch compress
//ImageCrusher::batch( '/path/of/images', true ); // recursive