Login   Register  
PHP Classes
elePHPant
Icontem

Thumbnail and Watermark: Create thumbnails, watermarks and resize images.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-07-18 (9 years ago) RSS 2.0 feedStarStarStarStar 71%Total: 9,788 This week: 6All time: 128 This week: 297Down
Version License Categories  
thumbnail_watermark 1.0.0GNU General Public Lice...Graphics
Description Author  

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.
Autodetect GD 1 and GD 2, auto-fitting, scaling, calculate quality factor for a specific file size, suport bicubic resample algorithm.

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
- 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

Picture of Emilio Rodriguez
Name: Emilio Rodriguez <contact>
Classes: 2 packages by
Country: Spain Spain
Age: 39
All time rank: 1869 in Spain Spain
Week rank: 341 Down12 in Spain Spain Down
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • screenshot.jpg
  Files folder image Files  
File Role Description
HTML file description.htm Doc. Description
HTML file doc.html Doc. Class documentation
Image file sample1.jpg Photo Test image 1
Image file source.jpg Photo Test source image
Image file text_sample.jpg Screen Sample Screenshot
Plain text file Thumbnail.class.php Class Class
Plain text file Thumbnail_sample.php Example Sample
Plain text file Thumbnail_save_sample.php Example Sample: generate thumbnail + watermark and save to a file with a unique filename
Plain text file Thumbnail_text_sample.php Example Sample: generate thumbnail with text watermark addon
Image file watermark.png Photo sample watermark

 Version Control Unique User Downloads Download Rankings  
 0%Total:9,788All time:128
 This week:6This week:297Down
User Ratings User Comments (2)  
 All time
Utility:92%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:78%StarStarStarStar
Examples:89%StarStarStarStarStar
Tests:-
Videos:-
Overall:71%StarStarStarStar
Rank:156
 
This class works in PHP 5, but I have to use a rename functio...
4 years ago (Mike Jackson)
60%StarStarStarStar
Excellent
5 years ago (kishore kumar)
80%StarStarStarStarStar