This is a simple project demoing an architecture using Netlify and ImageEngine to generate and cache social media preview images with text on them.
- Clone this repo.
- Put it on Netlify.
- customise the function
capture.js
with your Netlifyurl
- Customise the design of
App.svelte
- Test by accessing
https://<yournetlifyhost>/.netlify/functions/capture?title=My%20Title&desc=Her%27s%20the%20short%20summary
- Sign up for ImageEngine. Use your
<yournetlifyhost>
as the origin for ImageEngine - Update your
<meta>
tags to refer to the ImageEngine Delivery Address:https://<ImageEngineDeliveryAddress>/.netlify/functions/capture?title=My%20Title&desc=Her%27s%20the%20short%20summary
Done.