paint-brush
How to Create Dynamic Open Graph Imagesby@jana
1,699 reads
1,699 reads

How to Create Dynamic Open Graph Images

by Jana9mOctober 20th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article, we will see how to generate dynamic open graph images. We'll be using these npm packages to generate an OG image. We need a function that takes a screenshot of our content and passes it as a response. This can be achieved as follows: getChalk, getCss, getPage, getPfPage and chrome from 'puppeteer-core' The final output will be an image of an open graph image or OG image. We'll see how our output looks like.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Create Dynamic Open Graph Images
Jana HackerNoon profile picture
Jana

Jana

@jana

Senior Software Engineer @Cimpress | Full Stack Developer | Javascript Enthusiast

About @jana
LEARN MORE ABOUT @JANA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Jana HackerNoon profile picture
Jana@jana
Senior Software Engineer @Cimpress | Full Stack Developer | Javascript Enthusiast

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here