Imagefield Crop
Note: #268765: incompatible with imagefield-5.x-2.1 Since 6.x version of imagefield is yet another rewrite, I will probably implement 6.x support first, and 5.x-2 later, if at all.
Overview
imagefield_crop provides a widget for cropping an image after upload.
Usage
When the user uploads an image, the image is presented inside a cropping area. A cropping box is show inside, and the user can resize and move it. Upon clicking 'preview' or 'submit', the image is cropped and the result is saved within the node.
Prerequisites
The imagefield_crop module uses interface elements library to implement the resize interface. The following modules are required:
- jquery_interface (which by itself requires jquery_update).
- imagefield (since imagefield_crop is just an image widget module, not a field module)
Installation
- Install the module and enable it.
- Then on the image field configuration page (
admin/content/types/<content_type>/fields/<your_image_field>) choose the Image with cropping widget. - Save your field, and edit it again. There you can see the widget settings form where you can choose the cropping box size, and other configuration options.
- Upon uploading an image, or editing an existing node, the image cropping interface will be presented.
Issues that you could help with
- Sometimes you will need to use the 'refresh' button on your browser to see the updated image. #212622: Reload images after crop without browser refresh
- Only one widget per page is supported (no multiple values, no multiple fields with this widget in the node). #283722: support multiple fields
- The module requires the PHP GD library, and will not work if any other library is selected. I believe this limitation can be removed for Drupal 6, where the drupal image library is improved.
- This module is depended upon imagefield, so if you want to help with D6 support, start here - #224813: imagefield for D6, #257620: ImageField D6 port.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 5.x-1.1 | 2008-Apr-07 | 17.23 KB | Download · Release notes | Recommended for 5.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 5.x-1.x-dev | 2008-May-19 | 17.24 KB | Download · Release notes | Development snapshot | |
