# Use plotly offline to save chart as image file

**URL:** <https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408>\
**Category:** 📊 Plotly Python\
**Created:** [January 22, 2016, 10:03pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408 "2016-01-22T22:03:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoozits](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hoozits](https://community.plotly.com/u/hoozits)\
**Post date:** [January 22, 2016, 10:03pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/1 "2016-01-22T22:03:35Z")

</div>

I’ve used plotly with great success, and I’ve been able save a chart as an image file with success. Now I’m learning to use plotly offline, both with iPython Notebook and with the generic offline version. But I can’t find any informaton on how to save my offline (iPython Notebook version or otherwise) chart as an image file. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [January 23, 2016, 1:47pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/2 "2016-01-23T13:47:41Z")

</div>

To save your image, just hover the mouse slightly above the image/title and you can see the save icon.

---

<div class="post-metadata">

**Author:** ![hoozits](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hoozits](https://community.plotly.com/u/hoozits)\
**Post date:** [January 25, 2016, 3:09pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/3 "2016-01-25T15:09:13Z")

</div>

I’m sorry. I probably didn’t make myself clear in my original post. I want this done programmatically. The chart isn’t to be displayed at all. Just saved as an image file.

---

<div class="post-metadata">

**Author:** ![thauta](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@thauta](https://community.plotly.com/u/thauta)\
**Post date:** [February 2, 2016, 1:44pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/4 "2016-02-02T13:44:51Z")

</div>

I’m also looking for the save possibility in offline mode.

For me empet’s method doesn’t work either, it never finishes with the message of ‘snapshotting is still in progress’.

---

<div class="post-metadata">

**Author:** ![schlda00](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@schlda00](https://community.plotly.com/u/schlda00)\
**Post date:** [February 9, 2016, 1:17pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/5 "2016-02-09T13:17:47Z")

</div>

same problem here:  
I am using plotly offline in an ipython notebook and would like to save/export my plots and tables as pdf, but I did not find the syntax for this anywhere. Help is greatly appreciated!  
@ empet and thauta:  
this is not working for me either, png-generation fails. In any case I’d prefer pdf.

---

<div class="post-metadata">

**Author:** ![jpp](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jpp](https://community.plotly.com/u/jpp)\
**Post date:** [February 10, 2016, 2:04pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/6 "2016-02-10T14:04:16Z")

</div>

It seems that this feature (producing an image file in PDF/PNG/… programatically) is missing. It would be a very nice feature, though…

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [February 10, 2016, 4:31pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/7 "2016-02-10T16:31:33Z")

</div>

Take a look here how to save static images: [https://plot.ly/python/static-image-export/](https://plot.ly/python/static-image-export/)

---

<div class="post-metadata">

**Author:** ![schlda00](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@schlda00](https://community.plotly.com/u/schlda00)\
**Post date:** [February 10, 2016, 7:34pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/8 "2016-02-10T19:34:50Z")

</div>

contacting plotly support resulted in:

- community members may only export to PNGs Other formats are  
available with the profession plan: [https://plot.ly/products/cloud/](https://plot.ly/products/cloud/)

- At the moment it is not possible to programatically export an image while using offline, i.e. confirming @jpp

- You do have the option to use the camera icon in the mode bar on hover. This worked for me using plotly offline 1.9.3 and chrome, but not Firefox @thauta

at empet: I believe the info you refer to is not working for plotly offline

---

<div class="post-metadata">

**Author:** ![econgineer](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@econgineer](https://community.plotly.com/u/econgineer)\
**Post date:** [April 4, 2016, 4:51am UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/9 "2016-04-04T04:51:57Z")

</div>

Are there plans to add this feature for offline usage? I was hoping to use these in email reports, but can absolutely not send data outside our organization.

---

<div class="post-metadata">

**Author:** ![sglyon](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/sglyon/32/73_2.png) [@sglyon](https://community.plotly.com/u/sglyon)\
**Post date:** [April 7, 2016, 11:13am UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/10 "2016-04-07T11:13:49Z")

</div>

For what it is worth, in [PlotlyJS.jl](https://github.com/spencerlyon2/PlotlyJS.jl) I can get true vector image pdf/eps/svg export as well as configurable png/jpeg exporting by getting the svg data from plotly offline, using librsvg to load that into cairo, and using cairo to render to the desired file type.

---

<div class="post-metadata">

**Author:** ![parsonsk](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@parsonsk](https://community.plotly.com/u/parsonsk)\
**Post date:** [April 7, 2016, 12:42pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/11 "2016-04-07T12:42:50Z")

</div>

Thanks @sglyon - nice idea. I’ve been using PhantomJS or SlimerJS to programmatically render to a PNG file but it is not perfect (particularly for WebGL figures). The Cairo approach sounds interesting.

---

<div class="post-metadata">

**Author:** ![faisal](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@faisal](https://community.plotly.com/u/faisal)\
**Post date:** [May 25, 2016, 4:15pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/13 "2016-05-25T16:15:37Z")

</div>

javascript:alert(1)//http://google.com/tests.jpg

---

<div class="post-metadata">

**Author:** ![thedjofsis](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@thedjofsis](https://community.plotly.com/u/thedjofsis)\
**Post date:** [June 25, 2016, 11:10am UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/14 "2016-06-25T11:10:58Z")

</div>

> **[Static Image Export](https://plotly.com/python/static-image-export/)**
>
> Plotly allows you to save static images of your plots. Save the image to your local computer, or embed it inside your Jupyter notebooks as a static image.

  
I have used this **without** the login credentials. it worked. then stopped working I don’t know why.  
Edit: I understood now you’re trying to run that kind of command offline. In the link I shared, It uses the online connection.  
Such feature offline is not available yet maybe because the Offline stuff was released quite recently… Let’s hope for the best in future.

---

<div class="post-metadata">

**Author:** ![crystal1942](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@crystal1942](https://community.plotly.com/u/crystal1942)\
**Post date:** [July 10, 2016, 1:59pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/15 "2016-07-10T13:59:17Z")

</div>

Is that true for plotly offline too ? I mean If i am using plotly offline , does clicking to the button generate image locally without going to plotly server ?

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [July 11, 2016, 8:56pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/16 "2016-07-11T20:56:59Z")

</div>

> [@crystal1942](#):
>
> does clicking to the button generate image locally without going to plotly server ?

Yes. Image generation via the mode bar is done entirely client side.

---

<div class="post-metadata">

**Author:** ![volpine](https://avatars.discourse-cdn.com/v4/letter/v/c0e974/32.png) [@volpine](https://community.plotly.com/u/volpine)\
**Post date:** [August 2, 2016, 11:16pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/17 "2016-08-02T23:16:51Z")

</div>

I am also looking for this feature. I have already been using plotly python in offline mode in Jupyter Notebook, but I am unable to save the generated image programmatically.

---

<div class="post-metadata">

**Author:** ![Antoine](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Antoine](https://community.plotly.com/u/Antoine)\
**Post date:** [August 23, 2016, 8:45am UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/18 "2016-08-23T08:45:14Z")

</div>

+1 Exact same need.  
To my opiniion: important feature to make offline mode fully operaionnal!

---

<div class="post-metadata">

**Author:** ![mahadi](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mahadi](https://community.plotly.com/u/mahadi)\
**Post date:** [September 19, 2016, 12:56pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/20 "2016-09-19T12:56:05Z")

</div>

Also for me this would be great. +1

---

<div class="post-metadata">

**Author:** ![mkul](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mkul](https://community.plotly.com/u/mkul)\
**Post date:** [October 12, 2016, 11:32am UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/21 "2016-10-12T11:32:12Z")

</div>

I have a question about 3D plot (3D scatter plot). I need to export it in .U3D or .PRC format. Is that any way to do that?

---

<div class="post-metadata">

**Author:** ![chelsea](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chelsea/32/196_2.png) [@chelsea](https://community.plotly.com/u/chelsea)\
**Post date:** [October 12, 2016, 12:15pm UTC](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408/22 "2016-10-12T12:15:59Z")

</div>

That’s not possible at the moment. All possible exporting formats are listed here: [https://plot.ly/python/static-image-export/](https://plot.ly/python/static-image-export/)

[Next page](https://community.plotly.com/t/use-plotly-offline-to-save-chart-as-image-file/408.md?page=2)
