Copy image to clipboard

Hello!

I have some question:

Is it possible to copy png graph into windows clipboard without saving an image ?

Hi! I have this question too. I hope smb will help us.

This isn’t possible right now.

Thanks for the answer! I will look for another way, because i need a lot of png graphs for work, without an internet connection…

I think I’m understanding this issue wrong. I’m assuming that this question was about the “Save image as PNG” button in the graph’s toolbar. Clicking on this button will always download the image on the machine, it won’t copy it to the clipboard. Is this what you are referring too?

If you only need the PNG images, outside of the context of Dash, then you can use Orca to generate images of Plotly graphs: GitHub - plotly/orca: Command line application for generating static images of interactive plotly charts. However, that’s a separate issue!

1 Like

Does Ploty/Dash has any plan to support “Copy image to clipboard”? I believe it would be an useful feature for many users.

Yes, thank you for posting the question which I have too. Maybe someone can provide a bit more explantation into why one cannot copy an image or an ROI within in an image to the clipboard. My app goes to some great lengths to search for objects in an image and I really need to be able to copy and paste these ROIs. Thanks!

Seconded (thirded?). This would be a wonderful feature to have.

1 Like

I agree, it would be nice to be able to copy an image to the clipboard with dcc.Clipboard(). However, while copying text is widely supported by all the commonly used browsers, copying images is not. See Mozilla for more information on browser support for the clipboard API.

1 Like