# Images are broken on AMP

**URL:** <https://forum.ghost.org/t/images-are-broken-on-amp/7816>\
**Category:** Developer help\
**Created:** [June 17, 2019, 2:07pm UTC](https://forum.ghost.org/t/images-are-broken-on-amp/7816 "2019-06-17T14:07:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![m1guelpf](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/m1guelpf/32/767_2.png) [@m1guelpf](https://forum.ghost.org/u/m1guelpf)\
**Post date:** [June 17, 2019, 2:07pm UTC](https://forum.ghost.org/t/images-are-broken-on-amp/7816/1 "2019-06-17T14:07:54Z")

</div>

Seems to be the same issue as [AMP images in content seem to be broken - #7 by schliflo](https://forum.ghost.org/t/amp-images-in-content-seem-to-be-broken/7012/7), I’ve traced it back to the amperize library, which seems to be returning `<img>` tags that later get stripped by the sanitizer instead of `<amp-img>` tags.

I can reproduce this on the latest Ghost version with both the default amp template and a custom one.

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [June 17, 2019, 2:12pm UTC](https://forum.ghost.org/t/images-are-broken-on-amp/7816/2 "2019-06-17T14:12:02Z")

</div>

Hey @m1guelpf 👋 Could you please provide some clear steps to reproduce this issue?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [June 17, 2019, 2:17pm UTC](https://forum.ghost.org/t/images-are-broken-on-amp/7816/3 "2019-06-17T14:17:17Z")

</div>

@m1guelpf can you provide the URL of the post where you are seeing missing images? It’s difficult to diagnose the problem with no information 😉

---

<div class="post-metadata">

**Author:** ![schliflo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/schliflo/32/3314_2.png) [@schliflo](https://forum.ghost.org/u/schliflo)\
**Post date:** [June 17, 2019, 3:41pm UTC](https://forum.ghost.org/t/images-are-broken-on-amp/7816/4 "2019-06-17T15:41:54Z")

</div>

as I described in my thread:

1. run `docker run -d --name some-ghost -e server__port=3001 -e url=http://localhost:3001 -p 3001:3001 ghost`
2. go to backand
3. create new post
4. upload image in post
5. publish
6. go to post url and add /amp
7. watch the image in the content disappear

---

<div class="post-metadata">

**Author:** ![m1guelpf](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/m1guelpf/32/767_2.png) [@m1guelpf](https://forum.ghost.org/u/m1guelpf)\
**Post date:** [June 17, 2019, 6:45pm UTC](https://forum.ghost.org/t/images-are-broken-on-amp/7816/5 "2019-06-17T18:45:31Z")

</div>

> [@naz](#):
>
> Hey @m1guelpf 👋 Could you please provide some clear steps to reproduce this issue?

See message by @schliflo above

> [@Kevin](#):
>
> @m1guelpf can you provide the URL of the post where you are seeing missing images? It’s difficult to diagnose the problem with no information 😉

I’m facing this on a local install. I’ll share a URL once it’s deployed

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [July 1, 2019, 6:45pm UTC](https://forum.ghost.org/t/images-are-broken-on-amp/7816/6 "2019-07-01T18:45:32Z")

</div>

Closed on July 1, 2019, 6:45pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
