Login   Register  
PHP Classes
elePHPant
Icontem

Image dynamic resizer: Resize an image keeping the aspect ratio

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  
2008-10-28 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 837 All time: 3,805 This week: 1,459Up
Version License PHP version Categories  
img_resizer 1.0BSD License5PHP 5, Graphics
Description Author  

This class can be used to resize an image keeping the aspect ratio.

It can load an image from a given file or use a previously computed image.

The class can resize the image to a given width or height keeping the original aspect ratio.

If the original aspect ratio differs from the desired size aspect ratio, the resulting image can either be cropped or filled with a given background color.

Picture of andrei tataranu
Name: andrei tataranu <contact>
Classes: 1 package by
Country: Romania Romania
Age: 32
All time rank: 232850 in Romania Romania
Week rank: 1798 Up41 in Romania Romania Up

  Files folder image Files  
File Role Description
Plain text file cls_iresizer.php Class php class
Accessible without login Image file image.jpg Photo sample image
Accessible without login Plain text file image.php Example outputs an image
Accessible without login Plain text file index.php Example example of use

 Version Control Unique User Downloads Download Rankings  
 0%Total:837All time:3,805
 This week:0This week:1,459Up