Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt Image Cloudflare Provider Serious Bug #1544

Open
nafiz6629 opened this issue Oct 15, 2024 · 7 comments
Open

Nuxt Image Cloudflare Provider Serious Bug #1544

nafiz6629 opened this issue Oct 15, 2024 · 7 comments

Comments

@nafiz6629
Copy link

https://image.nuxt.com/providers/cloudflare#options
In this Documentation there is written "/cdn-cgi/image/" will be automatically appended for generating URLs , Which is wrong. Proper prefix that should be appended is "/cdn-cgi/imagedelivery/" (reference: https://developers.cloudflare.com/images/manage-images/serve-images/serve-from-custom-domains/#custom-paths )
Please Fix This Bug

@masud-ictlayer
Copy link

masud-ictlayer commented Oct 15, 2024

I am also facing same problem. Please Fix This Bug

@atiflayer
Copy link

I faced the same issue too. Please fix this problem asap. Thank you!

@ictLayerPulock
Copy link

I encountered the same issue as well. Kindly resolve this problem as soon as possible. Thank you!

@oritwoen
Copy link

This is not a bug nor a problem.

  • /cdn-cgi/image/ and /cdn-cgi/imagedelivery/ are two different services.

Everything working correctly with /cdn-cgi/image/

@ICTLAYER
Copy link

This is not a bug nor a problem.

  • /cdn-cgi/image/ and /cdn-cgi/imagedelivery/ are two different services.

Everything working correctly with /cdn-cgi/image/

I also agree with you, BUT as per documentation [ /cdn-cgi/image/ ] isn't working.

So please I need more elaborate documentation. Could you give us a more step-by-step guide?

Please check the reference:

https://developers.cloudflare.com/images/manage-images/serve-images/serve-from-custom-domains/

https://developers.cloudflare.com/images/transform-images/transform-via-url/

@ICTLAYER
Copy link

ICTLAYER commented Oct 15, 2024

This is not a bug nor a problem.

  • /cdn-cgi/image/ and /cdn-cgi/imagedelivery/ are two different services.

Everything working correctly with /cdn-cgi/image/

I also agree with you, BUT as per documentation [ /cdn-cgi/image/ ] isn't working.

So please I need more elaborate documentation. Could you give us a more step-by-step guide?

Please check the reference:

https://developers.cloudflare.com/images/manage-images/serve-images/serve-from-custom-domains/

https://developers.cloudflare.com/images/transform-images/transform-via-url/

More as an example to prove myself with respect:

Not Working: https://nuxtimgtest.pages.dev/cdn-cgi/image/7mnVjFJmJT6C1-RIIlFtQg/cf0cac91-0a0e-4c86-c376-60597e37e700/public

Working: https://nuxtimgtest.pages.dev/cdn-cgi/imagedelivery/7mnVjFJmJT6C1-RIIlFtQg/cf0cac91-0a0e-4c86-c376-60597e37e700/public

@oritwoen @danielroe @renovate-bot @pi0 @atinux

@phi0411141
Copy link

phi0411141 commented Nov 13, 2024

It's a bit confusing but let me clarify, Cloudflare has 2 image services

  • Transform on the fly, you give cloudflare an image link, it transforms, this is what NuxtImage provider cloudflare, =>https://yourdomain.com/cgi/image/w=500/<your_image_link>
  • Images service, you store image in cloudflare, they do pre-tranform (known as transform preset), then serve image => https://yourdomain.com/imagedelivery/<imageID_that_stored_in_cloudflare>

In your example, you are using option 2, the Image service, while NuxtImage provider cloudflare targets option 1. Maybe you can use https://image.nuxt.com/advanced/custom-provider for your case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants