Hi everyone,
i was wondering if it's possible to create a plugin that lets crop an area of an image..
Googling around, i've found the imgAreaSelect jquery plugin that lets you select an area of the image and, if you want, store this coordinates. (
http://odyniec.net/projects/imgareaselect/)
Exactly what i need! But I've never created a modx plugin, so i'm here to make a sort of brain-storming! (even because i don't know if a plugin is the right way!)
This is the "workflow" i thought:
1. managermanager create the image preview
2. imgAreaSelect plugin select the area
3. then crop the images with the given coordinates via php (maybe phpthumb)
Given that managermanager use a click function on the image preview to browse folders and the imgAreaSelect plugin use the mouse click to make the selection, i think i need to edit managermanager's widget (showimagetvs.php) to remove the browse function. At this point i've realized that maybe i can edit this widget adding here the imgAreaSelect, instead of create a new plugin.
Someone can show me the right way to go?
Hope what i wrote make sense, and that is not the delirious of a mad man!
Thanks
[ed. note: dscvr last edited this post 14 years, 4 months ago.]