Lemmy server behavior for thumbnails
from Flutser@lemmy.world to selfhosted@lemmy.world on 24 Dec 2025 22:43
https://lemmy.world/post/40662963

Hi, trying to setup a server myself. Following the instructions from join lemmy it seems pretty doable on docker on my vps. What drives me crazy though is the thumbnail behavior. External images show thumbnails, but images uploaded to my server just show the link arrow in the thumbnail view. When i look at my browser devtools it just shows the rounded thumbnail icon. Is this expected behavior or not? If not, anyone can give guidance on checks to perform for thumbnail creation for uploaded images?

Thx, flutser

#selfhosted

threaded - newest

Flutser@lemmy.world on 24 Dec 2025 22:45 next collapse

<img alt="" src="https://lemmy.world/pictrs/image/2717cb65-4a98-4d6d-8aa1-6a5f601e1793.jpeg">

Flutser@lemmy.world on 24 Dec 2025 22:46 next collapse

Top: uploaded image, when i click the link it loads. Below external url, i want this also for uploaded images…

Flutser@lemmy.world on 24 Dec 2025 23:21 next collapse

Running caddy, lemmy & lemmy ui 0.19.15 and pictrs asonix 0.5.19

bat0nas@lemmy.world on 08 Apr 2026 17:19 collapse

I have the same problem. Fresh install of my Lemmy. If I upload image - no thumbnail is displayed. I analyzed the logs and DB. Looks like Lemmy leaves thumbnail_url value “NULL” in the post table. And when external image is used - thumbnail is being generated and thumbnail_url value changes from NULL to an image name.

Did you find a solution?

bat0nas@lemmy.world on 08 Apr 2026 19:17 collapse

I managed to narrow the problem to this:

If I use locally stored image (eg.: https://my_External_url.com/pictrs/image/ddfdfdfdddd.jpg) as image URL during post creation - Lemmy doesn’t generate thumbnail either.

So somehow lemmy can’t access locally stored image for thumbnail generation.

Workaround could be to configure pictrs in lemmy.hjson as not a local container but as a http://my_External_url.com/pictrs. So it would treat them as external image. Couldn’t manage to test that theory yet :)