I am searching for a JavaScript library that allows me to draw a square selection box onto an image in browser. As a result, I'd like to have the coordinates of the selection box on the image. Is there anything like that out there?

1 Answer 1


Nevermind. I build it myself. If anyone else has such a requirement:

npm i dragsnip

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.