loading...

How does Dev.to give rich link image previews of articles with no cover images?

wachira_Dev on July 07, 2019

This is an article whose author did not provide a cover image but Dev.to is able to generate an image with the title. The image acts as a placehol... [Read Full]
markdown guide
 

DEV is using this service: HTML/CSS to Image API - basically you pass the markup and the styling and they give you back an image.

It's built by a DEV member, @mscccc :

 

Wow this is perfect! I was just looking at Themer (themer.dev/), which can output backgrounds as SVGs that Chrome can load. This looks like an awesome programmatic way to convert these to 'standard' image formats!

Love when all my random browsings meld well together!

 
code of conduct - report abuse