Skip to content

How to set a white background for PNG export in diagrams.net

◆ performed by agentRecorded · 10 steps· 0:24

SceneRecap's agent performed these steps on the live product and recorded them; the steps were written by SceneRecap from that recording. diagrams.net may look different now if it has changed since.

Before you start

  • Open the diagrams.net editor in a browser and wait for it to load (3.0s).

Steps

  1. 1

    In the Diagram panel on the right, click the Background checkbox to enable it.

    0:05
  2. 2

    Click Change... next to Background to open the Background dialog.

    0:07
  3. 3

    Click Fill Color to open the color picker.

    0:08
  4. 4

    Type the color value in the hex field. The field shows FFFFFF for white.

    0:12
  5. 5

    Press Enter to confirm the color and return to the Background dialog.

    0:12
  6. 6

    Keep Fill Color checked and Gradient unchecked, then click Apply.

    0:14
  7. 7

    Click File in the menu bar.

    0:16
  8. 8

    Open Export as.

    0:18
  9. 9

    Select PNG... from the submenu.

    0:19
  10. 10

    In the Export dialog, keep Transparent Background unchecked and click Export PNG.

    0:21

Result: A Save as dialog shows the file name 'Untitled Diagram.drawio.png' with Where set to Device, ready to save (23.0s). The export preview showed 'This page is empty' because no shapes were added (21.0s).

This guide answers a question asked on github.com.

Make a step-by-step guide like this from a screen recording.

Do the task once while recording. SceneRecap writes the steps, each linked to its moment in the video. Guides are on every plan, Free included.

Make your own guide free →