Source for file thumbnail.php
Documentation is available at thumbnail.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker */
// $Id: thumbnail.php,v 1.1 2008/05/26 03:03:26 firman Exp $
require_once 'Image/Tools.php';
// creates an instance of Thumbnail tool object
if (PEAR ::isError ($thumb)) {
$thumb->set ('image', dirname(__FILE__ ) . '/images/3dgirl.jpg');
if (isset ($_GET['percent'])) {
$thumb->set ('percent', 50 );
$thumb->set ('width', 100 );
$thumb->set ('height', 80 );
if (isset ($_GET['method'])) {
switch ($_GET['method']) {
// sets the horizontal alignment
if (isset ($_GET['halign'])) {
switch($_GET['halign']) {
// sets the vertical alignment
if (isset ($_GET['valign'])) {
switch($_GET['valign']) {
// display the image result
$err = $thumb->display (IMAGETYPE_JPEG );
if (PEAR ::isError ($err)) {
Documentation generated on Mon, 11 Mar 2019 15:22:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|