Ok, since I realeased that plugin, the major critic I got was to be
limited to only one corner for resizing. nat just said it again. So
here it is the new version almost ready

-Can have up to 8 resizing handles. Just pass an array of handle like
this : [ [top,left],[bottom,right],left,[bottom,left]] and it will
create only those handles. So you can create weird combinations with
only 5 handles if you want. It's really nice if you think that only
the corner handles are important but you don't need the middle ones.
If the array is empty or false, it will simply not be resizable.
handles are styled with css. The handle's size is set with an option.
In the example, even if the handle graphic is only 12px, the handles
themselves are actually 16px for bigger draggable area.
-if the keepRatio option is false, you can hold the shift key when you
start resizing to keep the current ratio
-if double click on the resizer, the selection will expand to the
maximum area it can fill. If keepRatio is false, it will simply select
all, else, it will create the biggest selection of that ratio that can
fit in the picture. This is a really nice addition when you just want
to select as much as possible of the picture.
-an optional box with inputs follows the resizer and let you manually
type the coordinates. Will maintain ratio if enabled and limit values
between default minimums and the image boundaries. This is mostly for
advanced use. Just set its opacity to 0 to disable it. I kinda ripped
off this idea from Moocrop plugin except moocrop example only displays
coordinates, you can't edit them
-If the mask opacity is set 0, it will simply not generate it at all.
It actually makes a difference because it's supposed to be updated on
mousemove.
Many other bug fixes, especially in IE

demo http://soletme.free.fr/crop/demo-crop.html
sorry, it might be a bit long to load because it contains the whole
uncompressed mootools library and the uncompressed crop script which
is now 30kb :shock:

still need more testing. will update the official page soon. I'm also
making some small modifications to my other plugins

Reply via email to