Class Thumbnail

Description

Thumbnail creation

  • version: $Id: Thumbnail.php 26 2004-03-31 02:35:21Z Wei Zhuo $
  • author: $Author: Wei Zhuo $

Located in /plugins/ImageManager/Classes/Thumbnail.php (line 19)


	
			
Variable Summary
 mixed $driver
 mixed $height
 mixed $quality
 mixed $type
 mixed $width
Method Summary
 Thumbnail Thumbnail ([int $width = 96], [int $height = 96])
 boolean createThumbnail (string $file, [string $thumbnail = null])
 void free ()
 void save (string $file)
Variables
mixed $driver (line 24)

Graphics driver, GD, NetPBM or ImageMagick.

mixed $height = 96 (line 34)

Thumbnail default height.

mixed $proportional = true (line 44)

Thumbnail is proportional

mixed $quality = 85 (line 39)

Thumbnail default JPEG quality.

mixed $type = 'jpeg' (line 49)

Default image type is JPEG.

mixed $width = 96 (line 29)

Thumbnail default width.

Methods
Constructor Thumbnail (line 56)

Create a new Thumbnail instance.

Thumbnail Thumbnail ([int $width = 96], [int $height = 96])
  • int $width: thumbnail width
  • int $height: thumbnail height
createThumbnail (line 70)

Create a thumbnail.

  • return: true if thumbnail is created, false otherwise
boolean createThumbnail (string $file, [string $thumbnail = null])
  • string $file: the image for the thumbnail
  • string $thumbnail: if not null, the thumbnail will be saved as this parameter value.
free (line 118)

Free up the graphic driver resources.

void free ()
save (line 110)

Save the thumbnail file.

void save (string $file)
  • string $file: file name to be saved as.

Documentation generated on Sat, 31 Dec 2005 14:56:55 -0500 by phpDocumentor 1.3.0RC3