PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  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 (13 years ago) RSS 2.0 feedStarStarStar 57%Total: 3,472 All time: 948 This week: 923Up
Version License Categories
img2thumb10a 1.0.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

  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,472
This week:0
All time:948
This week:923Up
 User Ratings  
 
 All time
Utility:86%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1377