You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can an option to have the image captured stored on the server, similar to an option in Shinyscreenshot?
"Saving to the server
By default, the image is downloaded to the user's computer and is not stored on the server running the Shiny app. If a server_dir is provided, then the image is stored to this directory on the server. Note that only the directory should be specified, not the file name."
html2canvas encounters CORS issues when screenshotting leaflet maps (some tiles dont load), where i havnt seem to had these issues with domtoimage, but i cant seem to figure out how to store the image on the server (my JS is limited).
Any help would be awesome.
The text was updated successfully, but these errors were encountered:
I added an option to send image as base64 string to the server when button is clicked:
capture(
selector="#result-block",
filename=NULL, # no download client sideinputId="screenshot", # image as base64 string will be available in input$screenshot
icon("camera"), "Take screenshot of results (retrieve server side)",
)
After you can write the image where you want with something like:
But currently, the input value is only updated when button is clicked, there's no method to trigger screenshot from the server. (but maybe a combination of hidding the button + shinyjs::click() is sufficient)
Can an option to have the image captured stored on the server, similar to an option in Shinyscreenshot?
"Saving to the server
By default, the image is downloaded to the user's computer and is not stored on the server running the Shiny app. If a server_dir is provided, then the image is stored to this directory on the server. Note that only the directory should be specified, not the file name."
html2canvas encounters CORS issues when screenshotting leaflet maps (some tiles dont load), where i havnt seem to had these issues with domtoimage, but i cant seem to figure out how to store the image on the server (my JS is limited).
Any help would be awesome.
The text was updated successfully, but these errors were encountered: