image
image copied to clipboard
support Cloudflare images
https://www.cloudflare.com/en-gb/products/cloudflare-images/
Check out https://github.com/nuxt/image/pull/359 for context, and product docs. It is a hosted (by upload) API while there is another (experimental?) cdn-cgi/
endpoint that allows fetching remote images to work zero-config similar to netlify and vercel.
/cc @xtuc Do you have any updates?
There's a (subtle) difference between Cloudflare Images and Image resizing (cdn-cgi/image/..
which isn't experimental);
- Cloudflare images is hosting the image and will generate a imagedelivery.net/ link at upload to serve an optimized image. The link needs to be injected in the HTML by nuxt.
- Image resizing is optimising and resizing the image on the fly, nuxt needs to include the image in the bundle in order to serve it and rewrite the URL to the /cdn-cgi/image/... path.
Thanks for clarifying @xtuc ❤️ Indeed second one is what we ideally want and is already possible for other providers. If it is out of beta now, do you have a link to docs?
It's out of beta since September! The documentation is https://developers.cloudflare.com/images, I believe you'll need to pay but if you can send me your account details at sven @ cloudflare com, i'll ask to enable.
the beta only gives instrucitons for next, how can we adapt to Nuxt? https://developers.cloudflare.com/images/image-resizing/integration-with-frameworks
Circling back on this! I'm happy to look into this internally and see where I can help get this to work. cc @pi0 @danielroe
Amazing - thank you @lauragift21!
I started using NuxtImage with Cloudinary but regarding the number of users we have it's ridiculously pricy, we would like to switch to Cloudflare Images in the near future, any ETA on this?
Is there an ETA on this?