How to add clickable areas to uploaded images in Nodejs

191 Views Asked by At

I want to add the ability for a user to tag photos at specific locations of choice when uploading them. Please which npm package(s) can I use to do that. I am currently working on a Meteor/react app, and using CollectionFS for saving images

1

There are 1 best solutions below

2
kimobrian254 On

The best option is to use svg images. These images can be opened in a text editor and you can assign id's to different sections. I had a task once to make different parts(muscles) of a a body clickable. I used Boxy SVG to map different muscles and assigned id's to those muscles. Then just used javascript to add click events to individual muscles.