zachleat’s avatarzachleat’s Twitter Archive—№ 35,696

  1. 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.
    1. …in reply to @zachleat
      Wow okay *project Who is proofreading these things
    2. …in reply to @zachleat
      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
      1. …in reply to @zachleat