# Export graph objects as image

**URL:** <https://community.plotly.com/t/export-graph-objects-as-image/84103>\
**Category:** 📊 Plotly Python\
**Created:** [April 29, 2024, 8:48am UTC](https://community.plotly.com/t/export-graph-objects-as-image/84103 "2024-04-29T08:48:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jung\_milan](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jung\_milan](https://community.plotly.com/u/jung_milan)\
**Post date:** [April 29, 2024, 8:48am UTC](https://community.plotly.com/t/export-graph-objects-as-image/84103/1 "2024-04-29T08:48:53Z")

</div>

Hi,

I am trying to export a graph objects figure as an image (PNG, JPG or whatever). I am trying with a simple example as below

```auto
import plotly.graph_objects as go

fig = go.Figure(
    data=[go.Bar(x=[1, 2, 3], y=[1, 3, 2])],
    layout=go.Layout(
        title=go.layout.Title(text="A Figure Specified By A Graph Object")
    )
)

fig.show()

```

But when I try to save fig as an image it just seems to run forever with no errors

```auto
fig.write_image("fig1.png",engine='orca')

```

I have tried with orca (1.8) and kaleido(0.2.1) but none seem to work.

Any feedback would be appreciated.

Thanks,  
J

Edit: I have also tried the code from plotly site (static-image-export.py)

[Static image export](https://plotly.com/python/static-image-export/)

Same result (seems infinite loop).

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [April 29, 2024, 9:21pm UTC](https://community.plotly.com/t/export-graph-objects-as-image/84103/2 "2024-04-29T21:21:08Z")

</div>

Hey @jung_milan, welcome to the forums.

I guess you’re using windows OS. This is a known issue, try using the search for this. The problem is related to kaleido.

See also

> [@Statik image export using kaleido](https://community.plotly.com/t/statik-image-export-using-kaleido/75670):
>
> Im trying to export images from plotly and it’s just not working! I’m using Anaconda and installed a new enviroment with just plotly and python-kaleido installed. No chance! In the jupyter notebook there is the \* sign for “running” but nothing happens. No error message … What should I do?

---

<div class="post-metadata">

**Author:** ![jung\_milan](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jung\_milan](https://community.plotly.com/u/jung_milan)\
**Post date:** [May 6, 2024, 11:10am UTC](https://community.plotly.com/t/export-graph-objects-as-image/84103/3 "2024-05-06T11:10:32Z")

</div>

Hi @AIMPED, thanks for the reply. Does this mean it works just fine in Mac or Unix?

I think for now I have to do it manually (save as PNG/JPG in dash). I may try the savefig feature from the regular fig,axs.

Thanks! J
