One of the tools developed for the photo gallery (and which has also been used on several of our other projects) is a photo cropping tool. Recently we’ve developed a new cropping tool in Flash with improved functionality. I’ve set up a live demo, and the source code (zip file) is also available.
May I Take Your Photo?
Our first cropping tool was built using Java and worked quite well. Java was somewhat restrictive with how the layout worked, but the functionality was excellent. We then discovered that several browsers on the Mac can’t return values to the browser due to a problem with LiveConnect (you can read more about it on Google Groups).
Recently we decided to remake the cropper to provide better functionality and wider browser support. While we’ve been supporting open-source, we decided for this application to use Flash due to its large user-base (also remember this is only for admin side use, so total compatibility isn’t an issue) and excellent graphics capabilities. While there are a few free Flash applets out there, they didn’t do exactly what we wanted, so we decided to build our own.
I’ve setup a demo here on the Labs site, and I’ll make the code available for anyone who would like to tinker with it (under the BSD License). This also includes a PHP class that works as a wrapper for the flash applet and makes it easy to customize.
We’re not Flash developers. While we do have several good programmers, this was one of our first stabs at getting Flash to work. In the zip file that includes the source, I’ve included a text file that outlines a few things we weren’t able to figure out, and small bugs. If a Flash developer out there can help us out on these issues it would be greatly appreciated and I’ll publish an updated version of the cropper for everyone to use. That said, big props go out to Brad here at silverorange who wrote the Flash code for the cropper.
Note: silverorange has also released our older Java version of the photo cropper which is also packaged in the above zip file. (October 30 2003)