api-opengraph-image icon indicating copy to clipboard operation
api-opengraph-image copied to clipboard

[Idea] Use a screenshot if no opengraph image is found

Open nhoizey opened this issue 4 years ago • 2 comments

If none of the 4 supported opengraph image sources exist, maybe a screenshot of the page would be a nice fallback.

nhoizey avatar Oct 28 '21 14:10 nhoizey

yeah—I like that!

I do that on my site manually, if I don’t have a background image for my opengraph generator, I use a screenshot of the page instead.

e.g. compare these two image

zachleat avatar Oct 28 '21 19:10 zachleat

@zachleat that's exactly what I had in mind! 👍

You could get the title from <title> at least, and maybe the avatar with api-indieweb-avatar.

nhoizey avatar Oct 28 '21 23:10 nhoizey