Convert PLOTLY to PNG

Turn PLOTLY files into PNG. The figure drawn by Plotly at the size its layout sets, or 700 by 450, at twice that size for sharp lines and text.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PLOTLY files on the dialor turn it to pick what to do

A Plotly chart as a sharp PNG.The figure is drawn as Plotly draws it, at twice its size.

  1. What you get

    One PNG of the figure as Plotly draws it. The size comes from the width and height set in the layout. If the layout sets none, the figure is drawn at 700 by 450.

    The image is made at twice that size, so lines and text stay sharp.

  2. What is left out

    Animation frames are not drawn. Only the figure itself is in the PNG.

    Map traces fail. They need outlines or tiles from the web, so the conversion stops with unsupported_elements.

  3. Next steps

    Once you have the PNG, you can resize PNG files or compress PNG files in separate steps.

PLOTLY and PNG.What each format is.

The formats

From · PLOTLY

Plotly Figure

A Plotly chart saved as JSON, with its traces under data and its axes, titles and colors under layout.

Extensions
.plotly.json .plotly
MIME type
application/vnd.plotly.v1+json
Kind
Text and data
To · PNG

PNG

Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.

Extensions
.png
MIME type
image/png
Kind
Images

In your code.The same PLOTLY to PNG conversion through the API, for your app or your agent.

terminal
$ cv convert report.plotly.json report.png
$ cv convert report.plotly.json report.png

Questions.What people ask about PLOTLY to PNG.

01OF 04

It is twice the size the layout sets. If the layout sets no size, it is twice 700 by 450.

No. Animation frames are left out.

The figure has a map trace. Map traces need outlines or tiles from the web, so the conversion stops with unsupported_elements.

The size comes from the layout of the figure. This conversion has no options for it.

More conversions.Other ways in and out of PLOTLY and PNG.