<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=LightweightWhiteboard%3AFiles_and_Saving</id>
	<title>LightweightWhiteboard:Files and Saving - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=LightweightWhiteboard%3AFiles_and_Saving"/>
	<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=LightweightWhiteboard:Files_and_Saving&amp;action=history"/>
	<updated>2026-10-21T06:35:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.mutigeraffe.com/index.php?title=LightweightWhiteboard:Files_and_Saving&amp;diff=2551&amp;oldid=prev</id>
		<title>Maintenance script: LightweightWhiteboard wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=LightweightWhiteboard:Files_and_Saving&amp;diff=2551&amp;oldid=prev"/>
		<updated>2026-10-20T21:29:58Z</updated>

		<summary type="html">&lt;p&gt;LightweightWhiteboard wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A board is stored as a single image file. There is no separate project format and no layers. What you see on the board is what is saved.&lt;br /&gt;
&lt;br /&gt;
== The .whiteboard format ==&lt;br /&gt;
A &amp;lt;code&amp;gt;.whiteboard&amp;lt;/code&amp;gt; file is a normal PNG image with a different file extension. VS Code opens these files in the board automatically.&lt;br /&gt;
* To view a board in another program, copy or rename it to &amp;lt;code&amp;gt;.png&amp;lt;/code&amp;gt;.&lt;br /&gt;
* You can also rename a PNG to &amp;lt;code&amp;gt;.whiteboard&amp;lt;/code&amp;gt; to open it in the board by default.&lt;br /&gt;
* In version control the file behaves like any other PNG image.&lt;br /&gt;
&lt;br /&gt;
The size of a board is the size of its image. A new board gets the size from &amp;lt;code&amp;gt;vscWhiteboard.defaultWidth&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;vscWhiteboard.defaultHeight&amp;lt;/code&amp;gt; (default 1920 × 1080 pixels). The size of an existing board cannot be changed in the board. See [[LightweightWhiteboard:Commands and Settings|Commands and Settings]].&lt;br /&gt;
&lt;br /&gt;
== Editing PNG files ==&lt;br /&gt;
The extension has a second editor, &amp;#039;&amp;#039;Whiteboard (edit PNG)&amp;#039;&amp;#039;, for normal &amp;lt;code&amp;gt;.png&amp;lt;/code&amp;gt; files. It is not the default, so PNG files still open in the VS Code image preview. To draw on a PNG:&lt;br /&gt;
# Open the PNG.&lt;br /&gt;
# Run &amp;#039;&amp;#039;View: Reopen Editor With...&amp;#039;&amp;#039; from the Command Palette, or right-click the file in the Explorer and choose &amp;#039;&amp;#039;Open With...&amp;#039;&amp;#039;.&lt;br /&gt;
# Choose &amp;#039;&amp;#039;Whiteboard (edit PNG)&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
It works exactly like the normal board. Saving overwrites the PNG file.&lt;br /&gt;
* Transparent areas are shown with a checkerboard and stay transparent until you draw on them.&lt;br /&gt;
* The eraser and &amp;#039;&amp;#039;Clear board&amp;#039;&amp;#039; paint white, they do not restore transparency.&lt;br /&gt;
* The board encodes the image again when you save. Extra data stored in the original file, such as text metadata, may not be kept.&lt;br /&gt;
&lt;br /&gt;
Other image formats such as JPEG cannot be opened as a board. You can insert them into a board instead. See [[LightweightWhiteboard:Images|Images]].&lt;br /&gt;
&lt;br /&gt;
== Saving ==&lt;br /&gt;
Every change marks the file as modified, like in a text editor.&lt;br /&gt;
* &amp;#039;&amp;#039;File → Save&amp;#039;&amp;#039; (&amp;lt;code&amp;gt;Ctrl+S&amp;lt;/code&amp;gt;) writes the board to the file.&lt;br /&gt;
* &amp;#039;&amp;#039;File → Save As...&amp;#039;&amp;#039; writes it to a new file. The content is always PNG, whatever name you choose.&lt;br /&gt;
* A new board from &amp;lt;code&amp;gt;Whiteboard: New Whiteboard&amp;lt;/code&amp;gt; has no file yet. Saving it opens the save dialog. If a folder is open, the dialog starts in the first workspace folder with the name &amp;lt;code&amp;gt;whiteboard-1.whiteboard&amp;lt;/code&amp;gt; (or the next number).&lt;br /&gt;
&lt;br /&gt;
If the board does not answer within 30 seconds while saving, VS Code shows the error &amp;#039;&amp;#039;The whiteboard did not respond in time.&amp;#039;&amp;#039; and the file is not written.&lt;br /&gt;
&lt;br /&gt;
== Revert ==&lt;br /&gt;
&amp;#039;&amp;#039;File → Revert File&amp;#039;&amp;#039; reloads the board from disk. All unsaved changes and the undo history are discarded. Reverting a new, unsaved board makes it blank again.&lt;br /&gt;
&lt;br /&gt;
== Unsaved boards and hot exit ==&lt;br /&gt;
Unsaved boards take part in the VS Code backup. If you close VS Code with unsaved boards and hot exit is enabled (VS Code setting &amp;lt;code&amp;gt;files.hotExit&amp;lt;/code&amp;gt;), the boards come back with their changes on the next start. This also works for new boards that were never saved.&lt;br /&gt;
&lt;br /&gt;
== Tabs ==&lt;br /&gt;
* A board can only be open in one editor at a time.&lt;br /&gt;
* A board keeps its state while its tab is in the background, including a floating image and the undo history.&lt;br /&gt;
&lt;br /&gt;
== Files that cannot be read ==&lt;br /&gt;
If a file is not a valid image, the board shows a blank board with the default size and the message &amp;#039;&amp;#039;The file could not be read as an image. Saving will overwrite it with the board shown here.&amp;#039;&amp;#039; This message stays until you close it. Do not save if you want to keep the original file.&lt;br /&gt;
&lt;br /&gt;
{{LightweightWhiteboard Nav}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>