Login   Register  
PHP Classes

Image Crop: Visual editor to let the user crop images

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Carlson A. Soares
Name: Carlson A. Soares <contact>
Classes: 4 packages by
Country: Brazil Brazil
Age: 25
All time rank: 60345 in Brazil Brazil
Week rank: 468 Up36 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x

  Detailed description   Download Download .zip .tar.gz  
This package can be used to implement a visual editor to let the user crop images.

It generates HTML, JavaScript and CSS for an user interface to let the user click on an image and define an area of the image to be cropped.

A PHP class of the package can crop the image as defined by the user and save the cropped image to a given file.

In Portuguese:

Essa classe usa uma imagem de origem[jpg, gif, png] para gerar um thumb de uma região selecionada pelo usuario, usando php e post via ajax.

  Classes of Carlson A. Soares  >  Image Crop  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Image Crop
Base name: image-crop
Description: Visual editor to let the user crop images
Version: 0.1
PHP version: 5.0
License: Free for non-commercial use
All time users: 2209 users
All time rank: 1645
Week users: 2 users
Week rank: 874 Up
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file sh_001.jpg Screen Screenshot of the class working

  Innovation Award  
PHP Programming Innovation award nominee
September 2010
Number 3

Prize: One subscription to the PDF edition of the PHP Architect magazine
Many Web applications require that the users submit images with certain sizes or proportions. Often the users do not have the images in the right sizes, so they need to crop them to match the requirements.

This class helps achieving that goal with a little help of JavaScript to let the user crop the images on the browser side. Then the images are cropped on the server side according to the coordinates the user has defined with a visual user interface presented by the class.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (79%) Sufficient (75%) - Sufficient (75%) - - Not sure (54%) 1281
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imagejs (1 file)
Files folder imageimages (2 files)
Plain text file filemanager.php Class This class work with files and paths, used by imagecrop
Plain text file image.php Class Image manipulation class, used by imagecrop
Plain text file imagecrop.php Class The main class, this do the crop and print the user interface
Plain text file exemple.php Example Test file, see the thing working

  Files folder image Files  /  js  
File Role Description
  Plain text file jquery-1.4.2.min.js Data JQuery, used by imagecrop

  Files folder image Files  /  images  
File Role Description
  Image file cinza_40.png Data background image of the selected area
  Image file loading.gif Data Image to show when the thumb is bein generate

Download Download all files: image-crop.tar.gz image-crop.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.