HueInDaHaus
CDCloudflare Developers
•Created by HueInDaHaus on 8/2/2023 in #workers-help
R2 bound worker + service worker with image resizing does not work
Hello guys! I'm new in the cloudflare space but love learning the systems.
I have an R2 storage which I have to keep private. On top of that I have a worker that is bound to it and serves images stored in a bucket. I have a second worker that is "service" bound to the R2 bound worker that I intend to have to serve optimized versions of the images. See the service bound worker script in the comments.
I can succesfully fetch an image from the .dev endpoint, but the image does not get resized with the width and height parameters. What am I doing wrong?
5 replies