Hey, thank you for sharing this! `puppeteer-social-image` is perfect for a side project I have where I want to generate images for riddles (both for social media using `og:image` and inline with the content of the page).
Something like that could definitely be possible, although it would require a fair bit of work. You can build custom HTML templates for OG IMPACT under the Pro tier, which supports JS.
You could have the template accept the origin URL as a query param, download the page and then do any AI processing using related libraries / APIs. The risk is that this could be quite a heavy template, which could cause timeouts on social media platforms.
6 comments
[ 3.0 ms ] story [ 26.5 ms ] threadSomething like that could definitely be possible, although it would require a fair bit of work. You can build custom HTML templates for OG IMPACT under the Pro tier, which supports JS.
You could have the template accept the origin URL as a query param, download the page and then do any AI processing using related libraries / APIs. The risk is that this could be quite a heavy template, which could cause timeouts on social media platforms.
Feel free to play around with this using the Editor: http://ogimpacteditor.netlify.com
Can users use their own CDN to host the images?
What would be the reason for using your own CDN?