Thumbnail and Watermark v1.48

2005/07/18 - English:

This is a PHP class that can process an image on the fly by either generate a thumbnail and/or apply an watermark to the image.

The processed image can either be displayed in a page, saved to a file, or returned to a variable.

It requires the PHP 4 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


Author: Emilio Rodrigez - [email protected]

Home page : http://www.phpclasses.org/browse/package/2086.html

2005/07/18 - Español:

Clase de PHP que procesa una imagen generando una copia reducida o ampliada de la misma. Puede añadir marcas de agua en formato texto como en imagen.

La imagen resultante se puede mostrar, guardar en un archivo o pasar como variable.

Requiere PHP 4 y superior con soporte para la librería GD, soporta las versiones 1 y 2 de esta librería. Recomendado la librería GD versión 2 ya que soporta imágenes en color verdadero y genera resultados de calidad excelente.

Características:
- Vistas previas: genera vistas previas.
- Marca de agua: Añade marcas de agua a la imagen. En formato texto o como imagen superpuesta.
- Auto-redimensionamiento: La vista previa se ajusta a un tamaño especificado manteniendo las proporciones originales.
- Escalado: la imagen se puede ampliar o reducir.
- Formatos gráficos: JPEG y PNG. La marca de agua como imagen solo en PNG transparente.
- Autodetección de la versión de la librería GD soportada por PHP.
- Cálculo de la calidad de compresión JPEG para un tamaño de salida especificado.
- Soporta remuestreado bicubico
- Genera nombres de archivos únicos para guardar la imagen.

Autor: Emilio Rodríguez - [email protected]

Página principal : http://www.phpclasses.org/browse/package/2086.html

Sample 1: Text sample:  

 

Original:

Watermark: