It's barely related to django. If all you want is to make annotation, it's fairly easy and you don't really need canvas and it's mainly javascript, which is independent from django. First, display your image. Second, get where your user want their annotation. I would do that by listening to click event on the image and computing the position of the click in the image, which is position of the click in the page minus position of the image in the page. Third, get the actual annotation. Fourth, send to django a request to store an annotation on image Z at position X / Y with text T.
Fifth is to display the image. Get all the annotation for the image, display dot at the position of each annotation, display the text on mousehover. Or directly on the image if the image is huge. Good luck 2016-11-13 21:48 GMT+01:00 Andrew Stringfield <loneso...@gmail.com>: > hello all, > > I am interested in being able to draw on a Django view. I have been > reading up some on how people draw in Html and it seems that the <canvas> > tag seems to a good start. Apparently I have to do some java scripting as > well. What I envision is that I have a background image and then my users > can make annotations on the image and save the data...some how. Any ideas? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/168eba94-cb9e-4dfa-a761-4f478150dd2f%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Cordialement, Coues Ludovic +336 148 743 42 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTYv4LciFT2MQP7%3DbQRW6AVvkY2QfxuvMc%3DH_qH6P8y%2BTQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.