# Export figure to bytes and preserve camera settings

**URL:** <https://community.plotly.com/t/export-figure-to-bytes-and-preserve-camera-settings/85668>\
**Category:** Dash Python\
**Created:** [July 8, 2024, 4:07pm UTC](https://community.plotly.com/t/export-figure-to-bytes-and-preserve-camera-settings/85668 "2024-07-08T16:07:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kerim](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kerim](https://community.plotly.com/u/kerim)\
**Post date:** [July 8, 2024, 4:07pm UTC](https://community.plotly.com/t/export-figure-to-bytes-and-preserve-camera-settings/85668/1 "2024-07-08T16:07:27Z")

</div>

Hi,

I’m looking for a way to export figure to image and preserve settings like camera position and zoom.  
For now exporting with `img_bytes = fig.to_image(format="png")` gives the image with default visualization settings.
