Login   Register  
PHP Classes
elePHPant
Icontem

Crop Canvas

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

  Author  
Picture of Andrew Collington
Name: Andrew Collington <e-mail contact>
Packages: 13 Browse all classes by Andrew Collington Browse all classes by
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: 38
All time rank: 504 in United Kingdom United Kingdom
Week rank: 816 Down32 in United Kingdom United Kingdom Down


  Detailed description   Download .zip .tar.gz  
This is a class allows you to crop an image in a variety of ways.

You can crop in an absolute or relative way (to a certain size or by a certain size), both as a pixel number or a percentage.

You can also save or display the cropped image.

The cropping can be done in 9 different positions: top left, top, top right, left, centre, right, bottom left, bottom, or bottom right.

Or you can have it automatically cropped based on a threshold value.

The original image can be loaded from the file system or from a string (for example, data returned from a database.)

It will also compensate so you can use GD versions 1.x or 2.x (though obviously 2.x will produce much better results!)

  Classes of Andrew Collington  >  Crop Canvas  >  Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Crop Canvas
Base name: crop-canvas
Description: A class to crop images in a variety of ways.
Version: -
PHP version: -
License: Free for non-commercial use
All time users: 4831 users
All time rank: 474
Week users: 0 users
Week rank: 2039 Equal
 
  Groups   Rate classes User ratings   Trackback  
  Applications   Related links   Files Files  

  Groups  
Group folder image Graphics Colors, images, charts and picture formats View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (96.9%)
Good (90.6%)
-
Good (82.8%)
-
-
Sufficient (65.8%)
428
Month:
Not yet rated by the users

  Trackback links  
Link Description
Image crop and save script (DHTML interface) I’ve always thought the way Digg allows you to crop profile images was pretty cool...
The Springleap web based image manipulation bundle For a while now I have been wanting to share a few scripts to help visitors with image manipulation...

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Demo of class A demonstration of the cropping class and cropping interface.
Forum The forum for the class
Homepage The class' homepage

  Files folder image Files  
File Role Description
Plain text file class.cropcanvas.php Class The main class file.
Plain text file class.cropinterface.php Class A web-based interface to the crop canvas class.
Accessible without login Plain text file inc.cropimage.php Aux. Dynamically outputs a resized image.
Accessible without login Plain text file inc.cropinterface.php Aux. The client-side code for the cropping interface.
Accessible without login Plain text file inc.cropjavascript.php Aux. Initiates elements to be handled by javascript.
Accessible without login Plain text file test.cropcanvas.php Example Just to show a few ways the class can be used.
Accessible without login Plain text file test.cropinterface.php Example Demo of cropping interface
Accessible without login Plain text file wz_dragdrop.js Aux. The drag & drop javascript behind the cropping interface. This code is created by Walter Zorn (http://www.walterzorn.com/dragdrop/dragdrop_e.htm).

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