ImgAreaSelect

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.

5 Responses to “ImgAreaSelect”

  1. James says:

    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.

  2. Michal Wojciechowski says:

    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.

  3. John Herr says:

    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?

  4. Michal Wojciechowski says:

    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).

  5. WizzArt says:

    Nice work, I hope dragg and aspect ratio will be realased soon :)

    But now me interesting how to crop selected area?

    Thanks

Leave a Reply