meltingwax
meltingwax

Reputation: 51

Having the user draw a box around a portion of an image

I'm not fluent in more than basic javascript, but I am looking to have a way that the user can draw a box around a certain portion of image, and then have the coordinates accessible so I can save them. Something similar to tagging photos in Facebook. Does anybody know of any libraries I can reuse? Any tips to get started?

Thanks in advance.

Upvotes: 1

Views: 313

Answers (1)

Pekka
Pekka

Reputation: 449605

Check out the jQuery image crop plugin. It's the most usable and beautiful plugin for the requirement that I know.

Here are some examples. You should be able to fetch the coordinates as shown in the event handler demo.

Upvotes: 5

Related Questions