Add support for hosted images api operations in the Images Binding#10153
Merged
emily-shen merged 4 commits intocloudflare:mainfrom Mar 2, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: be951c1 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
07e953d to
de6de22
Compare
efca0bb to
94d5780
Compare
94d5780 to
e054df5
Compare
e054df5 to
0539df3
Compare
dcce256 to
30ff241
Compare
2a03d60 to
de7c152
Compare
6e86169 to
5b2aa4d
Compare
897f0f1 to
8640b42
Compare
emily-shen
reviewed
Feb 27, 2026
Contributor
emily-shen
left a comment
There was a problem hiding this comment.
generally lgtm, could you get a review from the images team too to double check the implementation matches your team's expectations?
…Remove unneeded types from images.worker.ts
f26504a to
2e02579
Compare
dochne
reviewed
Mar 2, 2026
Member
Author
I've had a chat with @dochne (Images colleague) and he's happy with the implementation. |
emily-shen
reviewed
Mar 2, 2026
emily-shen
approved these changes
Mar 2, 2026
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is the counterpart for this workerd change that adds support for various CRUD operations for Cloudflare Hosted Images. This replicates existing functionality already available through the Images API.
Implementation Details
This PR includes a mock implementation (
packages/miniflare/src/workers/images/images.worker.ts) of the hosted images backend that uses an in-memory map for local development.Note that support for metadata filtering in the list method will be added in a followup MR
Regenerated
workerd.tswithpnpm run capnp:workerdTesting
The tests in
fixtures/vitest-pool-workers-examples/images/have been expanded to cover the new CRUD operations. As the accompanying workerd change has just been merged, testing locally was accomplished by pointing at my local branch:To sanity check the local development experience,
workerdwas compiled locally and run against our localminiflarewith a barebones test worker:Running this test worker against our local workerd branch:
Hurrah, our snail has been successfully uploaded, fetched and rotated!

Note that running wangler with the
--remoteflag currently fails with a 500. I have a bit of a gap in understanding here, but believe that this should be possible to get working once we have the necessary internal systems correctly configured.