Browser-friendly way of drawing rectangles on top of image R Shiny
问题 I have written a shiny app that allows the user to draw rectangles on top of an image (minimal reproducible example below). The problem with my current approach is that every time a rectangle is added, a new image is created, written to disk, and rendered (sent to the user's browser). This takes quite some time, and becomes really annoying when the Internet connection is slow. Is there any way to display the rectangles on top of the image directly in the browser , without modifying the image