Imagecrop

swentel - March 24, 2008 - 16:43

This module makes a javascript toolbox action available thanks to the power of Imagecache 2. It can currently 'hook' into several modules by adding a 'javascript crop' link on the edit forms of supported modules and/or fields. The popup window will display all available imagecache presets with a javascript crop action. In your theming you can use the imagecache theme function with a preset. The imagecache action will make a database call to choose the right crop area.

The main difference with projects like eyedrop or imagefield_crop is that it doesn't provide it's own widget to upload images, instead it just 'hooks' into image modules/fields.

Supported modules
-------------------------
image : Link is underneath the thumbnail on the edit page.
node_images : Underneath the thumbnail. Read on to implement a theme override.
imagefield : On node edit form. Previews & multiple values not supported (yet).

Everyone is invited to test and submit patches. A lot of things need to be optimized, especially the javascript and css, but there's some work to be done on the code, translations (even on this page) too. Use the issue queue for anything.
If anyone is interested being a co-maintainer, I'd be glad to give access to cvs also.

Two screencasts are available
http://realize.be/imagecrop-5x10-out : first release
http://realize.be/imagecache-2-and-imagecrop : early development

Installation

You need imagecache 2 ,imageapi and jquery_interface.
After you enable the module, you can go to admin/settings/imagecrop and enable support for modules & fields to display a link.

More info is in the readme file.

Releases

Official releasesDateSizeLinksStatus
5.x-1.02008-May-0515.43 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
5.x-1.x-dev2008-May-1415.46 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
 
 

Drupal is a registered trademark of Dries Buytaert.