> For the complete documentation index, see [llms.txt](https://viridian-games.gitbook.io/pixel-palette/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://viridian-games.gitbook.io/pixel-palette/core-components/file-system.md).

# File System

**Saving & Opening Projects (.pxl)**

A `.pxl` file is like a save file for a video game — it saves everything: all your layers, every pixel, layer names, visibility, and opacity. Open it later and you're right back where you left off.

| What     | How                                                                              |
| -------- | -------------------------------------------------------------------------------- |
| **Save** | File → Save Project. Saves as `.pxl` to wherever you choose                      |
| **Load** | File → Load Project. Opens a `.pxl` file and replaces whatever you're working on |

When loading, it resizes the canvas to match the saved project, rebuilds all layers, and resets the zoom.

**Exporting Pictures (PNG)**

Want to share your art outside the editor? Export as PNG.

| What                  | How                                                                                                                                                                                      |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Export PNG**        | Saves the full picture (all layers blended together) as a `.png` file. You pick the scale — 1× (pixel size), 2×, 4×, or 8×. 8× is great for sharing pixel art without seeing tiny pixels |
| **Export All Layers** | Saves every layer as its own `.png` file (like transparent stickers), plus one combined picture called `composite.png`. Pick a folder and it fills it up                                 |

**Exporting Animation (Spritesheet)**

Have multiple animation frames? Export a **spritesheet** — one big PNG with all frames lined up in a row, side by side, at 8× scale. Useful for game engines, social media, or GIF converters.

**Importing Pictures**

Drop an existing image onto your canvas:

| What                    | How                                                                                                                                              |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Import PNG**          | Opens a `.png` and paints it onto your current layer. It squishes/stretches to fit your canvas size (nearest-neighbor scaling = keeps it blocky) |
| **Import as New Layer** | Same thing, but adds a brand new layer so your existing art isn't touched                                                                        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://viridian-games.gitbook.io/pixel-palette/core-components/file-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
