capture icon indicating copy to clipboard operation
capture copied to clipboard

Image Scale

Open cfholbert opened this issue 3 years ago • 3 comments

Would it be possible to increase the scale of the image that is capture? For instance, make the captured image twice the height and width than shown in R Shiny.

cfholbert avatar Nov 10 '21 15:11 cfholbert

I don't see a way here. A solution could be to send the image to the server to do some post processing with {magick}, I could implement that, just didn't have the use until now. You can also try shinyscreenshot, the JS lib html2canvas behind has a scale argument that can be useful.

Victor

pvictor avatar Nov 15 '21 15:11 pvictor

Actually I found a way, re-install from GitHub then use scale argument like capture(..., scale = 2)

pvictor avatar Nov 15 '21 16:11 pvictor

This works wonderfully. Thank you very much!

cfholbert avatar Nov 15 '21 17:11 cfholbert