FLYAX
FLYAX

Reputation: 161

OpenGraph show full image size in preview

I want to show a thumbnail when sending a link. I tried it with using open graph and now it looks like that:

enter image description here

but I want it to look like this:

enter image description here

how can I change the size of the image in the preview.

This is my code right now:

  <meta property="og:image" content="/media/{{ image }}">

{{ image }} is just my templatetag for the image but that works like expected so there is no need to change something there.

If it's necessary I'm also able to change the service from opengraph to some other if changing the size is not possible there.

Upvotes: 2

Views: 426

Answers (1)

ioi-xd
ioi-xd

Reputation: 174

There isn't anything in the OpenGraph protocol that specifies this but what OP actually wanted (and what I wanted, having found the post years later) is what Discord looks for, which is the tag <meta name="twitter:card" content="summary_large_image"/>. Simply adding that gives you a larger image:

https://funnywa.rs/funnybites/26

Upvotes: 0

Related Questions