PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 3,476 All time: 973 This week: 524Up
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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,476
This week:0
All time:973
This week:524Up
 User Ratings  
 
 All time
Utility:86%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1590