# How to save an image from sketch windows

**URL:** <https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436>\
**Category:** Coding Questions\
**Created:** [October 8, 2020, 1:36pm UTC](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436 "2020-10-08T13:36:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaelb](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rafaelb](https://discourse.processing.org/u/rafaelb)\
**Post date:** [October 8, 2020, 1:36pm UTC](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436/1 "2020-10-08T13:36:32Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

PArdon my beginnereness!!!  
When I have a Sketch window and want to save it as a single figure (image) in .png or .jpg, what do I have to do??. Again: I make some art which I like hw it looks on the sketch windows, then I want to save it as an image (.png and/or .jpg). what do I have to do?? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 8, 2020, 2:25pm UTC](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436/2 "2020-10-08T14:25:42Z")

</div>

just write save(“test.jpg”); at end of draw ()

---

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [October 8, 2020, 6:55pm UTC](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436/3 "2020-10-08T18:55:13Z")

</div>

or at the end of setup(), unless you intend to capture 60 png’s a second

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 8, 2020, 6:56pm UTC](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436/4 "2020-10-08T18:56:55Z")

</div>

yeah or at the end of draw() with a key press:

```auto
if(keyPressed) 
    save(“test.jpg”);

```

---

<div class="post-metadata">

**Author:** ![rafaelb](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rafaelb](https://discourse.processing.org/u/rafaelb)\
**Post date:** [October 9, 2020, 12:43pm UTC](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436/5 "2020-10-09T12:43:36Z")

</div>

THank you very much to all of you. will try!!!
