# Image will not show in Ionic View

**URL:** <https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910>\
**Category:** ionic-v1\
**Created:** [June 3, 2017, 6:51pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910 "2017-06-03T18:51:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larryk](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Larryk](https://forum.ionicframework.com/u/Larryk)\
**Post date:** [June 3, 2017, 6:51pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910/1 "2017-06-03T18:51:55Z")

</div>

When I run “ionic serve -l” my image is displayed in safari. When I run “ionic upload” sync to latest and clear app data in ionic view app, my image is not displayed. This is what I have in my html file

> img src=“…/assets/images/icon.png”

If tried

> img src=“/assets/images/icon.png”

and

> img src=“assets/images/icon.png”

nothing seems to work. What’s wrong here?

---

<div class="post-metadata">

**Author:** ![ChargerIIC](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chargeriic/32/110422_2.png) [@ChargerIIC](https://forum.ionicframework.com/u/ChargerIIC)\
**Post date:** [June 9, 2017, 10:44pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910/2 "2017-06-09T22:44:19Z")

</div>

I’m having the same problem in ionic 3. I see several posts complaining about the problem but no solutions or reasons given for the problem. Anyone know why this happens?

---

<div class="post-metadata">

**Author:** ![ChargerIIC](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chargeriic/32/110422_2.png) [@ChargerIIC](https://forum.ionicframework.com/u/ChargerIIC)\
**Post date:** [June 9, 2017, 11:01pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910/3 "2017-06-09T23:01:11Z")

</div>

Just figured this out by going through the github issues. I had been using a src path from my assets folder within {projectname}/src. Instead I needed to point to the path in my {projectname}/www folder. Then it became viewable in Ionic View and Ionic Serve

---

<div class="post-metadata">

**Author:** ![chuckjgray](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@chuckjgray](https://forum.ionicframework.com/u/chuckjgray)\
**Post date:** [October 10, 2017, 7:04pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910/4 "2017-10-10T19:04:55Z")

</div>

@ChargerIIC I don’t fully understand your solution. I’ve tried several paths, all using the www folder. Path looks like www/assets/img/img.jpg

Everything shows on ionic lab, but does not show on ionic view. Tried 4 different variations of path, still no luck with the newest ionic view app. Any insights you can provide would be great! Thanks!

 ![17 PM](https://global.discourse-cdn.com/ionicframework/original/3X/8/f/8f50b80a560deddfe8e0a596353e815854a264cf.png)

---

<div class="post-metadata">

**Author:** ![jaydz](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jaydz](https://forum.ionicframework.com/u/jaydz)\
**Post date:** [October 10, 2017, 7:09pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910/5 "2017-10-10T19:09:24Z")

</div>

Try

```auto
"./assets/etc..."

```

I recall seeing that as a solution somewhere in the forums. Could be a false memory but, maybe not.

---

<div class="post-metadata">

**Author:** ![chuckjgray](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@chuckjgray](https://forum.ionicframework.com/u/chuckjgray)\
**Post date:** [October 10, 2017, 7:20pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910/6 "2017-10-10T19:20:10Z")

</div>

@jaydz Thanks for the help, but unfortunately that did not work either. Very odd that it will work in ionic lab but not in ionic view.

---

<div class="post-metadata">

**Author:** ![jaydz](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jaydz](https://forum.ionicframework.com/u/jaydz)\
**Post date:** [October 10, 2017, 8:18pm UTC](https://forum.ionicframework.com/t/image-will-not-show-in-ionic-view/92910/7 "2017-10-10T20:18:02Z")

</div>

Well, it can be 1 of 2 things (to my limited knowledge).

1. When you use ionic lab or ionic serve, the assets folder’s location is relationally different in position than when it’s on a  
device. localhost get’s involved in the path, etc.

2. I don’t actually know, but there was a solution to the same exact issue on the forums within the last month or so. I don’t  
know if it got marked as a solution, but if you scour for it, that might be the fix you need.
