workers-rs icon indicating copy to clipboard operation
workers-rs copied to clipboard

[Feature] Support for Images binding

Open madkrell opened this issue 9 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Description

workers-rs would be improved if support for an Images binding could be added as per the documentation here: https://developers.cloudflare.com/images/transform-images/bindings/

[images] binding = "IMAGES" # i.e. available in your Worker on env.IMAGES

Is anyone currently working on this or are there plans to add this binding?

An obvious use case is to have the ability via a worker to tranform an image before privately put the object into R2.

madkrell avatar Mar 21 '25 18:03 madkrell

Workers-rs is a thin wrapper over the JS/TS version.

So if its already supported on the JS/TS version you are mostly a thin wrapper away.

It shouldn't be hard for you to do it by yourself, its the rule of thumb I use for myself.

spigaz avatar Mar 22 '25 00:03 spigaz

I'm getting the same issue. The binding is not working and I get: ▲ [WARNING] Processing wrangler.toml configuration: - Unexpected fields found in top-level field: "images"

OrlandoBricenoB avatar Jul 23 '25 14:07 OrlandoBricenoB

Why was this closed? It doesn't look like workers-rs supports the images binding yet.

radix avatar Nov 01 '25 20:11 radix