# How to integrate local png graphics in my code

**URL:** <https://talk.code3dgames.com/t/how-to-integrate-local-png-graphics-in-my-code/391>\
**Category:** Uncategorized\
**Created:** [September 19, 2021, 2:44pm UTC](https://talk.code3dgames.com/t/how-to-integrate-local-png-graphics-in-my-code/391 "2021-09-19T14:44:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebastianSchwarzer](https://talk.code3dgames.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@SebastianSchwarzer](https://talk.code3dgames.com/u/SebastianSchwarzer)\
**Post date:** [September 19, 2021, 2:44pm UTC](https://talk.code3dgames.com/t/how-to-integrate-local-png-graphics-in-my-code/391/1 "2021-09-19T14:44:25Z")

</div>

Hi together. I have downloaded some PNG graphics, which I would like to use in my code. When I try to use them I got an error in the java script console: Not allowed to load local resource  
I gave permission for ‘all’ to read and write the following files in the mac share section.  
file:///Users/sebastianschwarzer/Downloads/kapitel8/texture/Gold.PNG  
What do I do wrong?

---

<div class="post-metadata">

**Author:** ![chris](https://talk.code3dgames.com/user_avatar/talk.code3dgames.com/chris/32/5_2.png) [@chris](https://talk.code3dgames.com/u/chris)\
**Post date:** [September 24, 2021, 4:22am UTC](https://talk.code3dgames.com/t/how-to-integrate-local-png-graphics-in-my-code/391/2 "2021-09-24T04:22:54Z")

</div>

You didn’t do anything wrong, unfortunately. Local graphics are currently not supported, but it is a feature that we hope to add to 3DE in the near future. For the time being, the only way to get this work is to use a publicly available image, such as those on [Wikimedia Commons](https://commons.wikimedia.org/). Then you can include that in your code such as:

```javascript
  var texture = new THREE.TextureLoader().load("https://upload.wikimedia.org/wikipedia/commons/d/d8/GOLD_METALLIC_TEXTURE_%287241678418%29.jpg");

```

-Chris
