Social media cards
2025-12-18 17:15:32 +01:00 by Mark Smith

Following on from the fix to the links in the Bluesky posts, I decided to look into improving the metadata on my blog pages so that the various social medias create nicer looking cards for my posts. In the short term I’ll use a standard image for all my posts. I might add the ability to customise this on a per post basis later, but for now they should all get a classic white text on black background.
It was a bit tricky because although Twitter lets you choose whether you display the image full width, or as a small thumbnail, all the others make the choice for you based on the resolution of the image you add in the meta data in your page <head>. I used ffmpeg to generate the image, slightly higher res for Twitter, and I updated my sites templates so the meta tags point to the right image.
The intention is for the image to appear as a small thumbnail on the left of the link, but we'll have to see how that goes, if it doesn't work I might need to make some adjustments. #