Directly save image (without opening in browser)
See original GitHub issueReferencing: #596 and #564
For saving an image you have first open it in the browser,
for example in jupyter: plotly.offline.plot(fig, filename=filename, image='svg')
opens a new tab and download immediately, when adding auto_open=False
:
plotly.offline.plot(fig, filename=filename, image='svg', auto_open=False)
then it will not open a new tab, but it will not download the image as well.
The jupyter command was only an example, of course this functionality would be more useful in text only scripts (python, javascript, R).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:38 (16 by maintainers)
Top Results From Across the Web
How To Save Images on a Webpage When Right Click Is ...
Saving images from websites is a pretty easy process. Generally, all it takes is to right-click on an image and save it to...
Read more >How to save image to hard disk without opening in new window
How to save image to hard disk without opening in new window · Save what where? · by clicking the link.it should be...
Read more >Can I save an image without opening it in the browser?
To save an image to your device without opening it in the browser, you can access the comments screen for the post and...
Read more >Download Protected Images from Browser when Right-Click ...
How to download protected images from browser when you can't right-click and “ Save Image as…” or the ability to download is disabled...
Read more >Saving an image in Chrome in one step - Super User
All the browsers I use beside from Chrome have a right-click option called Save Image to Downloads . The user right-clicks, selects "Save...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
~As previously mentioned in the issues you’ve referenced this feature is not possible at this time and we do not have a plan to add it in the immediate future. You can always submit feature requests here: https://support.plot.ly/libraries/python~
This is now supported 🎉 https://medium.com/@plotlygraphs/plotly-py-end-of-summer-updates-5422c98b9058
Happy holidays @jwhendy @bluprince13 @geniusupgrader !
Just wanted to let you know that Plotly is aware of this issue.
We’re currently testing a new image server on plotly cloud against more than 5 million user generated charts. If this goes well, we plan to open-source and package this server for easy, cross-platform use by Python users. Timeline is hopefully late February for a release.
TLDR; We’re using Electron for the new image server. The previous image server on Plotly Cloud and Plotly On-Premises used Batik for vector images (PDF, SVG, EPS) and node webkit for raster images (PNG, JPEG). The Electron rewrite has simplified things to an extent where we feel comfortable maintaining this as a pip installable library for Python users without (hopefully) a nightmare of issues related to complexities you’ve already mentioned - cross-platform support, font families, sprawling dependencies, etc.
Stay tuned. This is taking a while, but we are taking the time to do it right. I’ll try to update this issue as things get closer!