I’m releasing my second jQuery plugin today. It’s called imgAreaSelect, and it serves the exalted purpose of letting the user select a rectangular area within an image.
What good is selecting a rectangular area within an image, you may ask? Well, I originally used the code in a web gallery application — it allowed the user to select a part of a newly added image for cropping. So that’s one thing that it’s good for, but of course you can use it for any other wicked purpose that comes to your mind.
Hey, great plugin!
You should think about adding a draggable handle to the selected area.. so that the user can set their crop/selection size and then move it around to get the exact crop they want without trying to get the same size selection each time… if I end up adding it in I’ll send you the patch file.
Dragging (as well as a few other new features) will be added in the new version of the plugin. It’s pretty much completed — expect a release in the next few days.
Very nice. I like the suggestion James made, and I add another, which would be the ability to maintain an aspect ratio. Like James, if I get to that in the next few days, I’ll send you the patch.
Do you have a license for this?
Aspect ratio is one of the “other new features” that I mentioned. It’s already implemented, I just need to do some more testing before releasing the new version.
As for the license — it’s a MIT/GPL dual license (same as jQuery).
Nice work, I hope dragg and aspect ratio will be realased soon
But now me interesting how to crop selected area?
Thanks