Login   Register  
PHP Classes
elePHPant
Icontem

File: mImage_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Matt Malenski  >  mImage  >  mImage_example.php  >  Download  
File: mImage_example.php
Role: Example script
Content type: text/plain
Description: example of mImage class
Class: mImage
image class that can generate thumbnails or resize
Author: By
Last change: Fixed Syntax error in resize() call
Date: 12 years ago
Size: 351 bytes
 

Contents

Class file image Download
<?php

require('./mImage_class.php');

$myImage = new mImage("/home/mypath/someimage.gif");   // location of image
$myImage->create_thumbnail();                          // create new file "/home/mypath/th_someimage.gif"
$myImage->resize();                                    // resizes image if needed replace "/home/mypath/someimage.gif"

?>