<?
// Simple thumbnail maker
// Variables available are
// extension, upfile, dstfile, max_width, max_height
// Currently supports GIF and JPG
// makeThumb($max_width, $max_height, $upfile, $dstfile);
$tum = new thumbMaker;
$grabExt = explode(".", $_FILES['file']['name'];
$tum->extension = $grabExt[1];
$tum->upfile = $_FILES['file']['tmp_name'];
$tum->dstfile = "mythumb/" . $_FILES['file']['name'];
$tum->makeThumb(100,100);
?>
|