PHP Classes

File: Thumbnail.class.php

Recommend this page to a friend!
  Classes of Emilio Rodriguez   Thumbnail and Watermark   Thumbnail.class.php  
File: Thumbnail.class.php
Role: Class source
Content type: text/plain
Description: Class
Class: Thumbnail and Watermark
Create thumbnails, watermarks and resize images.
Author: By
Last change: 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:
- Thumbnail: normal thumbnail generation
- Watermark: Text or image in PNG format. Suport multiples positions.
- Auto-fitting: adjust the dimensions so that the resized image aspect is not distorted
- Scaling: enlarge and shrink the image
- Format: both JPEG and PNG are supported, but the watermark image can only be in PNG format as it needs to be transparent
- Autodetect the GD library version supported by PHP
- Calculate quality factor for a specific file size in JPEG format.
- Suport bicubic resample algorithm
- Generate unique filenames
- Tested: PHP 4 valid
Date: 19 years ago
Size: 25,635 bytes

You need to be a registered user and login to get this file.

1,615,787 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on: