PHP Classes

Image2Thumbnail 1.0a: Create thumbnails from GIF, JPG, or PNG on the fly

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-03-28 (12 years ago) RSS 2.0 feedStarStarStar 57%Total: 3,458 All time: 931 This week: 1,209Down
Version License Categories  
img2thumb10a 1.0GNU General Publi...Graphics
Description Author  

Create image thumbnails from GIF, JPG, or PNG on the fly showing them in an image tag or outputting them as files with explicit width, height, or both.

This version requires GD 2.0 or higher! This is based on img2thumb 1.0 class from Andreas Martens that includes support for reading of GIF files (& creating GIF thumbnails if server supports this).

The other bonus is that you can set the thumbnails to be either constrained proportions with a background fill to the max pixel width & height or to simply be constrained proportions inside the max pixel width & height (i.e. set at 60x60 with an original of 90x180 constrained to 30x60 or 30x60 with background fill to make the thumbnail 60x60).

Picture of Patrick Teague
Name: Patrick Teague <contact>
Classes: 1 package by
Country: United States United States
Age: 40
All time rank: 858107 in United States United States
Week rank: 1504 Down182 in United States United States Down

  Files folder image Files  
File Role Description
Plain text file Class class file Image2Thumbnail 1.0a
Accessible without login Plain text file imgsupport.php Aux. check image format support on server
Accessible without login Plain text file show_image_in_imgtag.php Example test script, creates the image file
Accessible without login Plain text file test.html Data test html file, needs some test.gif, test.jpg, or test.png

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,458All time:931
 This week:0This week:1,209Down
 User Ratings  
 All time