# saveCanvas() of p5.js stopped working after downloading newest version of Processing

**URL:** https://discourse.processing.org/t/savecanvas-of-p5-js-stopped-working-after-downloading-newest-version-of-processing/42914
**Category:** p5.js
**Created:** [October 7, 2023, 6:04am UTC](https://discourse.processing.org/t/savecanvas-of-p5-js-stopped-working-after-downloading-newest-version-of-processing/42914 "2023-10-07T06:04:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![laya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/laya/32/18879_2.png) [@laya](https://discourse.processing.org/u/laya)
#### Post date: [October 7, 2023, 6:04am UTC](https://discourse.processing.org/t/savecanvas-of-p5-js-stopped-working-after-downloading-newest-version-of-processing/42914/1 "2023-10-07T06:04:29Z")

</div>

It was working pretty well before. I was able to save jpg files by just calling saveCanvas() in the setup(). After I downloaded the newest version of processing, it stopped working, and only a blank canvas is saved.

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [October 8, 2023, 11:18am UTC](https://discourse.processing.org/t/savecanvas-of-p5-js-stopped-working-after-downloading-newest-version-of-processing/42914/2 "2023-10-08T11:18:18Z")

</div>

Hello @laya,

It works here using latest p5.js mode:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/5/5544d21c841f54abfdd68e0c172b8e6a0e320a37.png)

Code tested:

```auto
function setup() {
  background('red');
  saveCanvas("test.png");
}

function draw() {
}

```

`:)`
