Add support for Cloudflare Images operations in the images binding#5912
Merged
danlapid merged 5 commits intocloudflare:mainfrom Feb 25, 2026
Merged
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
Member
Author
|
I have read the CLA Document and I hereby sign the CLA |
Merging this PR will improve performance by 19.43%
Performance Changes
Comparing Footnotes
|
a721698 to
cb83759
Compare
dochne
reviewed
Jan 16, 2026
dochne
reviewed
Jan 16, 2026
af8444f to
826c28b
Compare
danlapid
reviewed
Feb 12, 2026
danlapid
reviewed
Feb 13, 2026
danlapid
reviewed
Feb 13, 2026
danlapid
approved these changes
Feb 20, 2026
fe76497 to
8c387e5
Compare
emily-shen
approved these changes
Feb 24, 2026
0ff70f1 to
98e8e43
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5912 +/- ##
==========================================
- Coverage 70.63% 70.62% -0.02%
==========================================
Files 413 413
Lines 109828 109828
Branches 18098 18098
==========================================
- Hits 77578 77565 -13
- Misses 21440 21455 +15
+ Partials 10810 10808 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7559567 to
32ad976
Compare
…etcher_no_get_put_delete compatibility flag
d3dc775 to
72de7ba
Compare
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.
Currently the Images Binding only supports
infoandtransformoperations. This PR introduces support for the following Hosted Images endpoints that are already available via the images api:The images binding has recently been switched to a direct binding, so whilst
infoandtransformare still handled byfetcher.fetchthe new endpoints for managing Hosted Images pass through via RPC.Sample implementation
Once released, we'd expect users to be able to write worker code that looks something like
Reviewer Considerations
uploadmethod having having a non trivial implementation (to leverage workerd's base64 decoding support)images-api.tsin its entirety and move the existing transformation logic into our upstream images apienv.IMAGES.hosted.list(). We are hopeful that will more clearly disambiguate their function to users and give us more flexibility on the addition of new methods to the binding in the future.Next Steps