workerd icon indicating copy to clipboard operation
workerd copied to clipboard

IMAGES-1177: Implement wrapped Images binding

Open ns476 opened this issue 1 year ago • 4 comments

This creates a new TS binding that allows image transformations and makes it available as an internal Cloudflare binding.

ns476 avatar May 29 '24 16:05 ns476

lgtm

xjewer avatar Jun 19 '24 16:06 xjewer

one more thing... this feature is really cool, but it will not be very useful if we don't come up with a local development story for it. Have you thought about how can one develop a worker locally with wrangler and miniflare and still use this new binding?

IgorMinar avatar Jun 20 '24 00:06 IgorMinar

Thanks for the review!

one more thing... this feature is really cool, but it will not be very useful if we don't come up with a local development story for it. Have you thought about how can one develop a worker locally with wrangler and miniflare and still use this new binding?

I think the approach taken with the AI binding will work nicely here: provide an endpoint on api.cloudflare.com with OAuth that proxies to a worker that invokes the binding.

ns476 avatar Jun 20 '24 20:06 ns476

Like Igor, very excited for this! I've personally needed it many many times :)

GregBrimble avatar Jun 21 '24 10:06 GregBrimble