# My Discourse Forum can't display images

**URL:** https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724
**Category:** Support
**Created:** [October 11, 2021, 11:34am UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724 "2021-10-11T11:34:13Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ispazio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ispazio/32/236388_2.png) [@ispazio](https://meta.discourse.org/u/ispazio)
#### Post date: [October 11, 2021, 11:34am UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/1 "2021-10-11T11:34:13Z")

</div>

Hi, i’ve a strange bug.  
It seems i can’t display images in my Discourse forum.

when i add an image, the upload process goes fine, in the message preview i can see the image but as soon as i publish the message, the image disappear

i can’t see the image in the discussion. But if i hit “EDIT” i will see it again in the preview

What’s wrong?

Here’s a demo video [https://www.ispazio.net/wp-content/uploads/2021/10/Registrazione-schermo-2021-10-11-alle-13.08.38.mov](https://www.ispazio.net/wp-content/uploads/2021/10/Registrazione-schermo-2021-10-11-alle-13.08.38.mov)

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [October 11, 2021, 1:14pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/2 "2021-10-11T13:14:13Z")

</div>

Do you use an external provider for uploads (amazon s3) ?

If not, I have two guesses (but I’m usually bad at this): you added some css custom for cooked images and it affects uploads also you can try `/safe-mode`, deactivate plugins and theme et check if it works.

Or during the post processus, the forum generates an optimized image and it doesn’t work. You can try deactivating the `create thumbnails` setting and upload a new image (you can’t use the same, because of a caching magic that remembers this image). It will not create an optimized version and it might work.

Check the` /logs` page anyway, there might be some useful info

---

<div class="post-metadata">

### Author: ![ispazio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ispazio/32/236388_2.png) [@ispazio](https://meta.discourse.org/u/ispazio)
#### Post date: [October 11, 2021, 1:34pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/3 "2021-10-11T13:34:03Z")

</div>

Hi. Thanks for the reply.

I’ve tried everything with no luck. First the [safe mode](https://meta.discourse.org/t/53504?silent=true), not helped , second I’ve deactivated the thumbnails feature

Last thing is the logs but I can’t read the logs. What I should find there?

---

<div class="post-metadata">

### Author: ![ispazio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ispazio/32/236388_2.png) [@ispazio](https://meta.discourse.org/u/ispazio)
#### Post date: [October 11, 2021, 1:39pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/4 "2021-10-11T13:39:39Z")

</div>

we’ve solved by adding this to our CSS:

```plaintext
.cooked img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji), .d-editor-preview img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji) {
width: 100% !important;
}

```

Thank you

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 11, 2021, 5:07pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/5 "2021-10-11T17:07:59Z")

</div>

My guess was going to be to turn on force https.

---

<div class="post-metadata">

### Author: ![ispazio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ispazio/32/236388_2.png) [@ispazio](https://meta.discourse.org/u/ispazio)
#### Post date: [October 11, 2021, 6:04pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/6 "2021-10-11T18:04:04Z")

</div>

i have it enabled already

 ![Schermata 2021-10-11 alle 20.03.15](https://global.discourse-cdn.com/meta/original/3X/3/6/3685893079596c7bfa270c6c761b082450bb4475.png)

---

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [October 13, 2021, 12:51pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/7 "2021-10-13T12:51:53Z")

</div>

> [@ispazio](#):
>
> we’ve solved by adding this to our CSS

If that CSS solved the problem, it’s probably because the image is shown wih 0px by default. Are you using some custom theme, or have other custom CSS code that might be causing it?

---

<div class="post-metadata">

### Author: ![ispazio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ispazio/32/236388_2.png) [@ispazio](https://meta.discourse.org/u/ispazio)
#### Post date: [October 13, 2021, 1:03pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/8 "2021-10-13T13:03:42Z")

</div>

Yes you’re right. My custom theme was showing images 0x0 pixels

i’ve found the setting to change this and now everything works fine without adding the previous css code to fix

thanks for the support

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 12, 2021, 1:04pm UTC](https://meta.discourse.org/t/my-discourse-forum-cant-display-images/205724/9 "2021-11-12T13:04:03Z")

</div>

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