Reputation: 161
I want to show a thumbnail when sending a link. I tried it with using open graph and now it looks like that:
but I want it to look like this:
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
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:
Upvotes: 0