| 1 |
Description
|
| 2 |
-----------
|
| 3 |
This is a development version, do not use it on production site unless you know what
|
| 4 |
you are doing.
|
| 5 |
|
| 6 |
This module makes a javascript toolbox action available thanks to the power
|
| 7 |
of Imagecache 2. It can currently 'hook' into the image module and cck imagefield widget.
|
| 8 |
It will add a 'javascript crop' link on the edit form of an image node or a node with an
|
| 9 |
imagefield widget. The popup window will display all available imagecache presets with
|
| 10 |
a javascript crop action. In your theming you can use the imagecache theme function with
|
| 11 |
a preset. The imagecache action will make a database call to choose the right crop area.
|
| 12 |
|
| 13 |
The main difference with projects like eyedrop or imagefield_crop is that it doesn't
|
| 14 |
provide it's own widget to upload images, instead it just 'hooks' into image files.
|
| 15 |
In the future, more modules will be supported and eventually a 'image file browser'
|
| 16 |
will also be made available.
|
| 17 |
|
| 18 |
Everyone is invited to submit patches for more module support. I might
|
| 19 |
even give some people cvs access.
|
| 20 |
|
| 21 |
Installation
|
| 22 |
------------
|
| 23 |
You need imagecache 2, imageapi and jquery_interface.
|
| 24 |
You need to apply the patch to the imagecache module. (patch -p0 < imagecache.patch)
|
| 25 |
(Support this module by going to http://drupal.org/node/231663 and review the patch)
|
| 26 |
After you enable the module, you can go to admin/settings/imagecrop and enable
|
| 27 |
support for modules & fields to display a link.
|
| 28 |
|
| 29 |
Copy the page-imagecrop.tpl.php to your /themes/yourtheme directory. This way, only
|
| 30 |
needed html will be displayed for the cropping (there are still some css-issues though,
|
| 31 |
but it will work for now).
|
| 32 |
|
| 33 |
A cron task cleans up the imagecrop table clearing records from files and/or presets
|
| 34 |
which do not exist anymore, so make sure cron is running.
|
| 35 |
|
| 36 |
Features, support, bugs etc
|
| 37 |
---------------------------
|
| 38 |
File request,bugs,patches on http://drupal.org/project/imagecrop
|
| 39 |
|
| 40 |
Inspiration
|
| 41 |
-----------
|
| 42 |
Came from the imagefield_crop module on which I based the html and jquery
|
| 43 |
with some adjustments.
|
| 44 |
|
| 45 |
Todo
|
| 46 |
----
|
| 47 |
Major code improvements like javascript,css & language cleanup, help descriptions,
|
| 48 |
support for modules and more. cf @todo's in all files.
|
| 49 |
6.x port (depends on imagecache2 for D6)
|
| 50 |
|
| 51 |
Author
|
| 52 |
------
|
| 53 |
Kristof De Jaeger - http://drupal.org/user/107403 - http://realize.be
|