andy's php projects
Script and site usage:
All of the scripts on this site are provided free for non-commercial, personal or non-profit use. If you wish to use any of these in a commercial system, please refer to the payment plan.

Support:
Support for each of the scripts is given, free of charge, on the message board. Each script has its own message board which can be accessed by clicking on the 'project forum' link (beneath the description of each project).

Proudly hosted with Dreamhost

Save $20 when signing up for Dreamhost by using the promo code amnuts20


If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh to encourage me to continue? Every little helps!

Zend Certified Engineer logo



Crop Canvas

This 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. Or you can automatically crop based on a threshold limit.

Along with this class comes a web-based interface that you can use the drag and easily resize the area you'd like to crop, set various initial cropping sizes (such as 16:9 porportion, or 200x100 pixels), and more.

cropcanvas.zip

A zip file containing all the required files for the crop canvas class and interface to give you a quick and easy download option.

24.5kb in size
last modified Nov 29, 2006 at 6:38am
16581 downloads

class.cropcanvas.php

This is the main class file for the core cropping features. If you use the crop interface then you will need this to process the image and for a number of variables/constants defined in this file.

18.06kb in size
last modified Jun 26, 2006 at 2:05am
13567 views, 12451 downloads

class.cropinterface.php

An extension to the crop canvas class which provides an interactive cropping area for an image. Very easy to use and implement.

16.46kb in size
last modified Nov 29, 2006 at 6:35am
7719 views, 9174 downloads

inc.cropinterface.php

Part of the crop interface class, this required file provides the actual HTML and Javascript for the interface itself. The interface is based on div tags and CSS for complete flexability.

8.21kb in size
last modified Nov 29, 2006 at 6:35am
3882 views, 3508 downloads

inc.cropjavascript.php

Part of the crop interface class, this required file provides the initiation of the javascript elements and must be called at the end of your HTML, just before the closing body tag.

1.34kb in size
last modified Nov 29, 2006 at 6:35am
3192 views, 3181 downloads

inc.cropimage.php

Part of the crop interface class, this required file provides a gateway to create a dynamically resized image.

713b in size
last modified Nov 29, 2006 at 6:35am
4812 views, 3361 downloads

test.cropcanvas.php

796b in size
last modified Jun 26, 2006 at 2:05am
9536 views, 9307 downloads

test.cropinterface.php

1.33kb in size
last modified Nov 29, 2006 at 6:35am
6134 views, 8224 downloads

wz_dragdrop.js

The drag & drop javascript behind the cropping interface. This code is created by Walter Zorn (http://www.walterzorn.com/dragdrop/dragdrop_e.htm).

38.45kb in size
last modified May 4, 2006 at 2:41pm
8048 downloads

transparentpixel.gif

Provided as part of the wz_dragdrop.js library to provide backwards compatability for older browsers.

43b in size
last modified Jan 14, 2006 at 12:47pm
5089 views, 7948 downloads
list all projects :: this project's forum :: script in action
added Apr 12, 2003 at 6:42pm :: updated Nov 29, 2006 at 6:54am :: 10 files :: 113726 views

© Andrew Collington, 2002-2007.