Image Optimization for Cloudflare R2 #13968
escwxyz
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 1 reply
-
If you're using the Cloudflare stack, it makes sense to use Cloudflare's image transformation service to serve optimized images on your front-end that are derived from your original full-size images hosted on R2. You can use URL transformation parameters directly in your front-end templates, or if you want more advanced control – you can transform via the worker or through a worker binding. The above native solution would be most efficient, especially over a wasm-derived custom image processing worker. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have checked the Cloudflare D1 template with R2 integration and found that image optimization / dimensions are disabled as these are tightly coupled with sharp.
Would that make sense to have a workers only plugin to support this, such as using the wasm version of photon, injecting the image processing logic in before change hooks?
Beta Was this translation helpful? Give feedback.
All reactions