<?
// see online : http://kentung.f2o.org/scripts/thumbnail/sample.php
include_once("resize.php");
$thumb=new thumbnail("/www/shiegege.jpg"); // prepare to generate "shiegege.jpg" in directory "/www"
$thumb->size_width(100); // set width for thumbnail with 100 pixels
$thumb->show(); // show my thumbnail
$thumb->save("/www/thumb/huhu.jpg"); // save my thumbnail to file "huhu.jpg" in directory "/www/thumb
?>
|