dreamRs / capture

Take screenshots in Shiny apps
https://dreamrs.github.io/capture
GNU General Public License v3.0
30 stars 4 forks source link

Image Scale #5

Open cfholbert opened 2 years ago

cfholbert commented 2 years ago

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.

pvictor commented 2 years ago

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 commented 2 years ago

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

cfholbert commented 2 years ago

This works wonderfully. Thank you very much!