-
Did a bit of investigative work—thinking about using @eleven_ty Image in a @Netlify Function for runtime image transformations. Should speed up builds when your projects has a lot of images.
-
Wow okay *project Who is proofreading these things
-
I wouldn’t use this in production but wow it was pretty easy to set up. A demo URL dynamically converting a remote Unsplash image to AVIF and resizing to 600w using @eleven_ty Image: eleventy-img-cloud.netlify.app/.netlify/functions/image?width=600&format=avif&url=https://images.unsplash.com/photo-1583446763077-29c444445856 …in about 60 lines of code 😅 github.com/11ty/eleventy-img-cloud/blob/main/functions/image.js
-
Sorry if you’re using Firefox, here’s a Webp image for you: eleventy-img-cloud.netlify.app/.netlify/functions/image?width=600&format=webp&url=https://images.unsplash.com/photo-1583446763077-29c444445856