# Image resolution

**URL:** <https://community.plotly.com/t/image-resolution/17868>\
**Category:** plotly.js\
**Created:** [January 9, 2019, 8:57am UTC](https://community.plotly.com/t/image-resolution/17868 "2019-01-09T08:57:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanket](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sanket](https://community.plotly.com/u/sanket)\
**Post date:** [January 9, 2019, 8:57am UTC](https://community.plotly.com/t/image-resolution/17868/1 "2019-01-09T08:57:01Z")

</div>

Hi,

I am using plotly.js to create plots in reactjs. But when i export it as png resolution is very less. I researched, but what i came to know is use plotly.toImage(). But in reactjs i am using “plot” instead of plotly.newPlot(). Can you help how can i include image height,width in “plot”?

---

<div class="post-metadata">

**Author:** ![mail8](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/mail8/32/31560_2.png) [@mail8](https://community.plotly.com/u/mail8)\
**Post date:** [August 9, 2020, 2:49am UTC](https://community.plotly.com/t/image-resolution/17868/2 "2020-08-09T02:49:54Z")

</div>

I tried to find something about this topic for like an hour. Once I found it how to make the downloaded figures formatted the same as the current viewport, but I cannot find it anymore. Would be nice if the documentations would be updated.
