How can I let the users export a plotly plot in a shinyapps.io app?

Locally, I am using the orca utility to export plots made with ggplotly. However, this utility is apparently not available in shinyapps.io.

Plotly has an option to download the plot as png. However, the size of the image is too small and I cannot change it unless I have the Professional subscription.

Is there any other alternative to export plots for apps hosted in shinyapps.io?

Thanks and best regards.

You should be able to control the file type and size without a plotly account. See here -- https://plotly-r.com/exporting-static-images.html#from-a-browser

If you don't want to set a fixed size, and want to make absolutely sure that the image download uses it's full container size, you might have to do the following:

plot_ly() %>%
  config(
      # Make sure image download uses full container size
      # https://github.com/plotly/plotly.js/pull/3746
      toImageButtonOptions = list(width = NULL, height = NULL)
  )