PHP Classes

Thumbs Crop: Create thumbnails and crop images in directory

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
Not enough user ratingsTotal: 265 All time: 7,767 This week: 73Up
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: 120414 in Portugal Portugal
Week rank: 164 Up3 in Portugal Portugal Up

Details

This php class creates thumbs from a folder to another, and crop the image to a square Usage: import('thumbs.class.php'); $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 $croping->del_pictures(); 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. WARNINGS: 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 (2)  
File Role Description
Accessible without login Plain text file readme Doc. readme
Plain text file thumbs_class Class thumbs.class

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:265
This week:0
All time:7,767
This week:73Up