# How can i load image files in processing without crashing the build

**URL:** <https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870>\
**Category:** Coding Questions\
**Created:** [March 26, 2021, 1:27pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870 "2021-03-26T13:27:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![canslp](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@canslp](https://discourse.processing.org/u/canslp)\
**Post date:** [March 26, 2021, 1:27pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870/1 "2021-03-26T13:27:05Z")

</div>

i have a processing sketch that loads svgfiles with the loadShape function from a folder within the source folder called graphics. when i build it as an executable app, i have to remove all the loadShape calls and references to them or else the app won’t even open. if i manually add the graphics folder to the source folder within the app, it actually will open the sketch window but will immediately freeze. what is the proper way to use svgs in processing? should i not be putting them into a subfolder?

---

<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:** [March 26, 2021, 1:31pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870/2 "2021-03-26T13:31:26Z")

</div>

In the data folder

Chrisir

---

<div class="post-metadata">

**Author:** ![canslp](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@canslp](https://discourse.processing.org/u/canslp)\
**Post date:** [March 26, 2021, 1:32pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870/3 "2021-03-26T13:32:48Z")

</div>

i don’t have a folder called data. should i make one? what do you mean by this

---

<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:** [March 26, 2021, 1:34pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870/4 "2021-03-26T13:34:45Z")

</div>

That’s what I mean

Yeah

---

<div class="post-metadata">

**Author:** ![canslp](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@canslp](https://discourse.processing.org/u/canslp)\
**Post date:** [March 26, 2021, 1:35pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870/5 "2021-03-26T13:35:32Z")

</div>

are you saying i should make a folder called data and put the images in that. could i put the whole ‘graphics’ folder in it or do they have to be directly in there

---

<div class="post-metadata">

**Author:** ![canslp](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@canslp](https://discourse.processing.org/u/canslp)\
**Post date:** [March 26, 2021, 1:37pm UTC](https://discourse.processing.org/t/how-can-i-load-image-files-in-processing-without-crashing-the-build/28870/6 "2021-03-26T13:37:07Z")

</div>

oh nice that actually worked. i have never encountered this problem before, thanks
