How to set a white background for PNG export in diagrams.net
Step-by-step guideby SceneRecap AI
Before you start
•Open the diagrams.net editor in a browser and wait for it to load (3.0s).
- 1
In the Diagram panel on the right, click the Background checkbox to enable it.
· Background checkbox - 2
Click Change... next to Background to open the Background dialog.
· Change... button - 3
Click Fill Color to open the color picker.
· Fill Color button - 4
Type the color value in the hex field. The field shows FFFFFF for white.
· Hex color field - 5
Press Enter to confirm the color and return to the Background dialog.
· Enter key - 6
Keep Fill Color checked and Gradient unchecked, then click Apply.
· Apply button - 7
Click File in the menu bar.
· File menu - 8
Open Export as.
· Export as menu item - 9
Select PNG... from the submenu.
· PNG... menu item - 10
In the Export dialog, keep Transparent Background unchecked and click Export PNG.
· Export PNG button
End state
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).
These steps were written by SceneRecap from a screen recording. Make your own guide free
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 →