PHP Classes

File: mImage_example.php

Recommend this page to a friend!
  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: 20 years ago
Size: 351 bytes


Class file image Download


$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"