Thumbnail and Watermark 1.48
This is a class that can process an image on the fly by either generate a thumbnail, apply an watermark to the image, or resize it.
The processed image can either be displayed in a page, saved to a file, or returned to a variable. It requires the PHP with support for GD library extension in either version 1 or 2. If the GD library version 2 is available it the class can manipulate the images in true color, thus providing better quality of the results of resized images. Features description:
Located in /Thumbnail.class.php (line 69)
open source image
Calculate JPEG quality factor for a specific size in bytes
return the result thumbnail
Get which version of GD is installed, if any.
Returns the version (1 or 2) of the GD extension.
NOT USED : to do: mezclar imagenes a tamaņo original, preservar canal alpha y redimensionar
Merge multiple images and keep transparency $i is and array of the images to be merged: $i[1] will be overlayed over $i[0] $i[2] will be overlayed over that
generate image
save your thumbnail to file
show your thumbnail, output image and headers
set the biggest width and height for thumbnail
set the biggest width or height for thumbnail
set height for thumbnail
set width for thumbnail
generate a unique filename in a directory like prefix_filename_randon.ext
Documentation generated on Mon, 18 Jul 2005 15:02:34 +0200 by phpDocumentor 1.2.3