og-image icon indicating copy to clipboard operation
og-image copied to clipboard

`.svg` output format

Open TooTallNate opened this issue 5 years ago • 4 comments

It would be nice if there was an option to output to SVG 👍

TooTallNate avatar Aug 11 '20 07:08 TooTallNate

We would have to use something besides puppeteer screenshot which only supports png and svg.

https://github.com/puppeteer/puppeteer/blob/v5.2.1/docs/api.md#pagescreenshotoptions

Also, need to research if existing social networks will accept svg as the og image.

styfle avatar Aug 11 '20 12:08 styfle

Ahhh right. Would probably need to be refactored to use node-canvas or something else that supports svg output.

TooTallNate avatar Aug 11 '20 17:08 TooTallNate

Also, I'm not sure about social networks + svg, but the reason I made this issue is because I'm (ab)using this service for use in GitHub readmes (example), which do support .svg images.

TooTallNate avatar Aug 11 '20 19:08 TooTallNate

og (opengraph) does not support SVG – would be nice if it did in the future though.

olafghanizadeh avatar Jun 18 '21 14:06 olafghanizadeh

You can use https://github.com/vercel/satori directly to generate SVG.

styfle avatar Dec 12 '22 00:12 styfle