Desmoline Awa
Desmoline Awa

Reputation: 535

How to add clickable areas to uploaded images in Nodejs

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

Upvotes: 0

Views: 194

Answers (1)

kimobrian254
kimobrian254

Reputation: 577

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.

Upvotes: 0

Related Questions