PHP Classes

File: preview.php

Recommend this page to a friend!
  Classes of Ondra Rafaj   Fuerte Image Tool   preview.php   Download  
File: preview.php
Role: Example script
Content type: text/plain
Description: live preview of image in img tag
Class: Fuerte Image Tool
Perform image manipulation operations
Author: By
Last change:
Date: 16 years ago
Size: 281 bytes
 

Contents

Class file image Download
<?php
$path
= $_GET['path'];
$width = (int) $_GET['width'];
if (empty(
$width)) $width = 100;
$height = (int) $_GET['height'];
if (empty(
$height)) $height = 100;
require_once (
'images.class.php');
$img = new images($path);
$img->resize($width, $height);
$img->output();
?>