# \[p5 WEB\] I would like to save ‘saveFrames’ (current WEB screen) into one image variable

**URL:** <https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381>\
**Category:** Beginners\
**Created:** [May 4, 2024, 10:28am UTC](https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381 "2024-05-04T10:28:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [May 4, 2024, 10:28am UTC](https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381/1 "2024-05-04T10:28:49Z")

</div>

[p5 WEB] I would like to save ‘saveFrames’ (current WEB screen) into one image variable.

hello. Nice to meet you.

1. I would like to save the image of the current WEB screen in a variable.

2. I would like to edit and save the image by saving it to a variable.

- ‘jpg file export’

```auto
    var filenames = "REPORT_"+str(year())+nf(month(),2,0)+nf(day(),2,0)+nf(hour(),2,0)+nf(minute(),2,0);    
    var pic1;
    pic1= saveFrames("0",'jpg',1,1);
    pic1=copy(pic1, 0,0,100,100, 0,0,50,50);
    pic1.save(filenames+".jpg");

```

How can I convert the current screen into an image variable?

---

<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:** [May 4, 2024, 10:33am UTC](https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381/2 "2024-05-04T10:33:20Z")

</div>

see [reference | p5.js](https://p5js.org/reference/#/p5/get)

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [May 4, 2024, 11:28am UTC](https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381/3 "2024-05-04T11:28:13Z")

</div>

@Chrisir

How are you? Thank you for your quick reply.

Thanks to you, I solved it.  
Thank you

```auto
     let c = get(240, 0, 1920, 1080);
     c.save(filenames+".jpg");

```

---

<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:** [May 4, 2024, 11:58am UTC](https://discourse.processing.org/t/p5-web-i-would-like-to-save-saveframes-current-web-screen-into-one-image-variable/44381/4 "2024-05-04T11:58:05Z")

</div>

I am fine, my friend!
