Login   Register  
PHP Classes
elePHPant
Icontem

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 del.icio.us Bookmark in del.icio.us
  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 (11 years ago) RSS 2.0 feedStarStarStar 57%Total: 3,448 This week: 1All time: 916 This week: 1,447Down
Version License Categories  
img2thumb10a 1.0GNU General Public Lice...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: 39
All time rank: 833103 in United States United States
Week rank: 1096 Down116 in United States United States Down

  Files folder image Files  
File Role Description
Plain text file class.img2thumb.inc 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,448All time:916
 This week:1This week:1,447Down
 User Ratings  
 
 All time
Utility:86%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1046