shish / shimmie2

An easy-to-install community image gallery (aka booru)
http://code.shishnet.org/shimmie2/
GNU General Public License v2.0
400 stars 111 forks source link

Twitter Card Support #531

Open TheOpponent opened 8 years ago

TheOpponent commented 8 years ago

I looked at the source of the view page and noticed that some of the metatags needed for Twitter Card embedding of the "Summary with large image" type are already present, albeit as fallbacks using OpenGraph, namely og:title, og:image, and og:url. Using the Custom HTML Headers extension, I added tags for twitter:card, twitter:site, twitter:title, and og:description, which was enough to have tweets embed thumbnails when linking to a view page. Would it be possible to better integrate Twitter Card support by also adding the native Twitter metatags and possibly generating a second thumbnail closer to the 1 MB image limit?

shish commented 4 years ago

Relevant docs / validator:

https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary-card-with-large-image

https://cards-dev.twitter.com/validator

AxelTerizaki commented 5 months ago

I'm bumping this as I got a request from users today asking if I could make it so my shimmie install could display images better. Right now it displays like this

image

Instead of a small picture, it'd be nice if we could have a bigger one. :)