PHP Classes

Thumbs Crop: Create thumbnails and crop images in directory

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 262 All time: 7,739 This week: 266Up
Version License PHP version Categories
thumbs-crop 0.1GNU General Publi...5.0PHP 5, Graphics
Description Author

This class can create thumbnails and crop images in directory.

It can traverse the list of files in a directory and for those with the JPEG file name extension it create thumbnails and cropped versions of the original images.

The class can also delete the thumbnail images if the original image does not exist.

Picture of Tiago André
Name: Tiago André <contact>
Classes: 4 packages by
Country: Portugal Portugal
Age: ???
All time rank: 121014 in Portugal Portugal
Week rank: 479 Up8 in Portugal Portugal Up

This php class creates thumbs from a folder to another, and crop the image to a square


$croping= new thumbs_crop('images','images/thumbs'); $croping->crop_all();

Adicional functions: $croping->get_pictures();

return a array with the pictures inside the images folder


It detects if the thumb have a mother-image, if not it detect the thumb, is very usefull to delect thumbs that are not in use.

Make sure you have created the folder images and the thumbs folder.
Make sure you have gd extension in php.ini
make sure you haver permissions
  Files folder image Files  
File Role Description
Accessible without login Plain text file readme Doc. readme
Plain text file thumbs_class Class thumbs.class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,739
This week:266Up
For more information send a message to info at phpclasses dot org.