> For the complete documentation index, see [llms.txt](https://easy-draw.joemazzone.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easy-draw.joemazzone.net/python/module-reference/saving-your-drawing.md).

# Saving Your Drawing

## Your Drawing is Already Saved

Every time your program runs, Easy Draw writes your drawing to an `index.html` file in the same folder as your program. Open `index.html` in a web browser any time to see your drawing again.

## Using the Button

You can save your drawing as a PNG file by clicking the **Save Canvas** button in the Easy Draw page. Just be sure to provide the image with a file name.

Your web browser downloads the picture, so it will save wherever your browser saves downloads (most likely your Downloads folder).

## `save_canvas()` Function

If you want to programmatically save the canvas, you can use the `save_canvas()` function. The picture saves as a .png file in the same folder as your program.

```python
easy_draw.save_canvas()
```

Without a file name, the function asks for the file's name in the terminal.

If you want to use the `save_canvas()` function without asking each time, you must provide a file name to save the image as.

```python
easy_draw.save_canvas("my_pic")
```

{% hint style="info" %}
The picture is created by your web browser, so your drawing must be open in a browser tab. If it is not open yet, Easy Draw waits and saves the picture once the page opens.
{% endhint %}

Images loaded from a link with `open_image()` are copied into the saved picture. If the image's website does not allow that, Easy Draw downloads the image itself to include it.
