image icon indicating copy to clipboard operation
image copied to clipboard

support Cloudflare images

Open danielroe opened this issue 2 years ago • 11 comments

https://www.cloudflare.com/en-gb/products/cloudflare-images/

danielroe avatar Sep 23 '21 09:09 danielroe

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?

pi0 avatar Sep 23 '21 10:09 pi0

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.

xtuc avatar Sep 23 '21 10:09 xtuc

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?

pi0 avatar Sep 23 '21 13:09 pi0

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.

xtuc avatar Sep 23 '21 13:09 xtuc

the beta only gives instrucitons for next, how can we adapt to Nuxt? https://developers.cloudflare.com/images/image-resizing/integration-with-frameworks

chk613 avatar Dec 23 '21 08:12 chk613

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

lauragift21 avatar Mar 16 '22 15:03 lauragift21

Amazing - thank you @lauragift21!

danielroe avatar Mar 16 '22 15:03 danielroe

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?

theolavaux avatar Oct 19 '22 08:10 theolavaux

Is there an ETA on this?

realandrew avatar Jul 29 '23 01:07 realandrew