# In p5.js web editor, can I reuse an image from assets folder in several projects?

**URL:** <https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899>\
**Category:** Beginners\
**Created:** [June 15, 2020, 9:31pm UTC](https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899 "2020-06-15T21:31:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carbonne](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@carbonne](https://discourse.processing.org/u/carbonne)\
**Post date:** [June 15, 2020, 9:31pm UTC](https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899/1 "2020-06-15T21:31:15Z")

</div>

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

I’m beginning to explore p5.js web editor, and I was wondering if there is a way to reuse an image from a previous project without uploading it again, since it’s already in my assets folder.  
Thank you!

---

<div class="post-metadata">

**Author:** ![slow\_izzm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/slow_izzm/32/5637_2.png) [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)\
**Post date:** [June 15, 2020, 11:02pm UTC](https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899/2 "2020-06-15T23:02:04Z")

</div>

Not yet …

> <https://github.com/processing/p5.js-web-editor/issues/225>
>
> Since eventually there will be a limit on the total size of the files that a user has uploaded (#168), it...

---

<div class="post-metadata">

**Author:** ![slow\_izzm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/slow_izzm/32/5637_2.png) [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)\
**Post date:** [June 15, 2020, 11:08pm UTC](https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899/3 "2020-06-15T23:08:30Z")

</div>

You could host on something like dropbox …

```auto
let img, url = 'https://dl.dropboxusercontent.com/s/35drk9bes8j0ups/train.png?dl=0';

function preload() {
  img = loadImage(url);
}

function setup() {
  createCanvas(img.width * 0.25, img.height * 0.25);
  img.resize(img.width * 0.25, img.height * 0.25);
}

function draw() {
  image(img, 0, 0);
}

```

---

<div class="post-metadata">

**Author:** ![carbonne](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@carbonne](https://discourse.processing.org/u/carbonne)\
**Post date:** [June 16, 2020, 9:35am UTC](https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899/4 "2020-06-16T09:35:14Z")

</div>

Thank you for the alternative.  
The Assets folder has a Max of 250 MB, right?
