Class ImageFunctions
Description
A library for manipulating images
Located in /class.imagefunctions.php (line 24)
Method Summary
Methods
static method GenerateThumb (line 44)
This method creates a thumbnail image of the supplied image, assuming it exists, based on the supplied width and height. The generated thumbnail will not be these exact dimensions, but instead is generated based on these rules:
- If the width and height of the image are less than the supplied with and height for the thumbnail, then the actual size of the image is used.
- If the ratio of the max height / current height is < current height, then an image is generated with a height of height * ratio and width of max width.
- If the ratio of the max width / current width is < current width, then an image is generated with a width of width * ratio and height of max height.
static
bool
GenerateThumb
(string $sFileName, string $sThumbName, array $aSize)
- string $sFileName: The path and file name to the file to create a thumbnail from
- string $sThumbName: The path and file name of the thumbnail to create
- array $aSize: An array of width and height to limit the image to 0 => x, 1 => y
Documentation generated on Thu, 25 Feb 2010 15:59:40 -0500 by phpDocumentor 1.4.3

