Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Scale #5

Open
cfholbert opened this issue Nov 10, 2021 · 3 comments
Open

Image Scale #5

cfholbert opened this issue Nov 10, 2021 · 3 comments

Comments

@cfholbert
Copy link

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
Copy link
Member

pvictor commented Nov 15, 2021

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
Copy link
Member

pvictor commented Nov 15, 2021

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

@cfholbert
Copy link
Author

This works wonderfully. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants