this post was submitted on 24 Aug 2024
5 points (100.0% liked)

Beehaw Support

2796 readers
6 users here now

Support and meta community for Beehaw. Ask your questions about the community, technical issues, and other such things here.

A brief FAQ for lurkers and new users can be found here.

Our September 2024 financial update is here.

For a refresher on our philosophy, see also What is Beehaw?, The spirit of the rules, and Beehaw is a Community


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.


if you can see this, it's up  

founded 2 years ago
MODERATORS
 

I have looked through the app I use (mlem) and the web interface but I can't figure out how to give a link post an image, as when I try to put something into the image section it replaces the link.

So how is it done exactly? Is this some setting, special script or app feature I don't know about? Or have I missed something?

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 2 months ago (1 children)

You can't. There's only one URL field you can use, and it can be a link or an image (or video).

When you post a link, the server will try to fetch the metadata for it (title, description, thumbnail image, and/or embedded video). So what you're seeing on posts that have a URL and an image are the thumbnail images provided by the metadata fetch of the link that's posted.

Workaround is to put the image in the body with the inline syntax: ![Image alt text](https://image.url/image.jpg)

[–] [email protected] 2 points 2 months ago (1 children)

Oh, hmm, so why on youtube videos does the image fetch sometimes work and sometimes not, and same for other URLs, I assume. Do I need to enter the full youtube.com url and not the youtu.be one?

This is very confusing to me why it wouldn't be able to fetch all the images associated with a URL for me but seems to work flawlessly for others, unless I am seeing it in the body and mistakenly assume it's attached to the URL.

Hmm. More testing is required I guess.

Thank you for the workaround!

[–] [email protected] 1 points 2 months ago (1 children)

Oh, hmm, so why on youtube videos does the image fetch sometimes work and sometimes not, and same for other URLs,

It all depends on the Lemmy server making the fetch. Many Lemmy instances are run from various VPS's, and sometimes sites block IP ranges from certain cloud providers or Cloudflare might not let them through unchallenged. If the server can't fetch the details, it won't have the thumbnail image.

I think it also depends on the instance's pict-rs configuration as well. If the thumbnail it fetches is larger than the max size configured for pict-rs, it won't fetch it. There's some other weirdness with that process, but I'm not sure enough to even try to explain it lol.

[–] [email protected] 2 points 2 months ago

Ah, thanks so much for explaining! This makes sense, yeah.

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (1 children)

You can put the image in the body text.

You can not give a link your own thumbnail.

Though being able to do that would be a cool addition to Lemmy, IMO.

[–] [email protected] 1 points 2 months ago

Thank you very much!

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago)

This isn't directly possible. You can add an image to the body of the post using the ![alt text](https://example.com/image.png) formatting. Lemmy automatically chooses an image to display on link posts. You can't override this on Lemmy 0.18.4, which Beehaw uses (I believe it's possible on later Lemmy versions, but the official UI doesn't support it on those versions).