PHP Classes

Thumbnail Party: Generate thumbnail images using GD or ImageMagick

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 2,429 All time: 1,601 This week: 310Up
Version License Categories
thumbnail_party 1.0GNU General Publi...Graphics


This class can be used to generate image thumbnails.

It can use either the PHP GD library functions or the ImageMagick program.

The class generates thumbnail images with a size proportional to the original image.

If the original image is smaller than the target thumbnail size, the class may optionally enlarge the original image.

The empty spaces around the rescaled image can be optionally filled with a background color.

The rescaled image can be stored in a server side file or served as the current script output.

The class can store the thumbnail images in cache files to avoid thumbnail image generation overhead when the thumbnail images are generated with the same size.

When using GD library functions, the class checks the available memory to prevent thumbnail image generation errors.

When an error occurs, the class displays the error message within the generated image.

Watermark feature has been added since v1.1.0

Picture of Mickey Chan
Name: Mickey Chan <contact>
Classes: 2 packages by
Country: Hong Kong Hong Kong
Age: 55
All time rank: 10734 in Hong Kong Hong Kong
Week rank: 578 Up2 in Hong Kong Hong Kong Up

  • screenshot-watermark.jpg
  • screenshot.jpg
  Files folder image Files  
File Role Description
Files folder imagecache (1 file)
Files folder imagesample (5 files)
HTML file index.html Output Example page
Plain text file thumbnail.php Example Script for output thumbnail directory to browser
Plain text file thumbnail_party.class.php Class Class of Thumbnail_Party
Plain text file tp_watermark.class.php Class Watermark class

  Files folder image Files  /  cache  
File Role Description
  Plain text file README Data Description of cache directory

  Files folder image Files  /  sample  
File Role Description
  Image file 110x200_jpg Photo Sample image
  Image file 200x150_jpg Photo Sample image
  Image file 200x160_jpg Photo Sample image
  Image file 80x142_jpg Photo Sample Image
  Image file watermark.png Photo Sample Watermark

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,601
This week:310Up
User Ratings User Comments (1)
 All time
This class do not work with PHP 5.
12 years ago (Sergei Svirid)