---
title: Bind the Images API to your Worker
description: You can now interact with the Images API directly in your Worker with Image Bindings.

image: https://edgetunnel-b2h.pages.dev/changelog-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://edgetunnel-b2h.pages.dev/changelog/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

# Changelog

New updates and improvements at Cloudflare.

[ Subscribe to RSS ](https://edgetunnel-b2h.pages.dev/changelog/rss/index.xml) [ View RSS feeds ](https://edgetunnel-b2h.pages.dev/fundamentals/new-features/available-rss-feeds/) 

![hero image](https://edgetunnel-b2h.pages.dev/_astro/hero.CVYJHPAd_26AMqX.svg) 

[ ← Back to all posts ](https://edgetunnel-b2h.pages.dev/changelog/) 

## Bind the Images API to your Worker

Feb 24, 2025 

[ Cloudflare Images ](https://edgetunnel-b2h.pages.dev/images/) 

You can now [interact with the Images API](https://edgetunnel-b2h.pages.dev/images/optimization/binding/) directly in your Worker.

This allows more fine-grained control over transformation request flows and cache behavior. For example, you can resize, manipulate, and overlay images without requiring them to be accessible through a URL.

The Images binding can be configured in the Cloudflare dashboard for your Worker or in the Wrangler configuration file in your project's directory:

* [  wrangler.jsonc ](#tab-panel-2941)
* [  wrangler.toml ](#tab-panel-2942)

**JSONC**

```jsonc
{
  "images": {
    "binding": "IMAGES", // i.e. available in your Worker on env.IMAGES
  },
}
```

**TOML**

```toml
[images]
binding = "IMAGES"
```

Within your Worker code, you can interact with this binding by using `env.IMAGES`.

Here's how you can rotate, resize, and blur an image, then output the image as AVIF:

**TypeScript**

```ts
const info = await env.IMAGES.info(stream);
// stream contains a valid image, and width/height is available on the info object


const response = (
  await env.IMAGES.input(stream)
    .transform({ rotate: 90 })
    .transform({ width: 128 })
    .transform({ blur: 20 })
    .output({ format: "image/avif" })
).response();


return response;
```

For more information, refer to [Images Bindings](https://edgetunnel-b2h.pages.dev/images/optimization/binding/).

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://edgetunnel-b2h.pages.dev/changelog/post/2025-02-21-images-bindings-in-workers/#page","headline":"Bind the Images API to your Worker · Changelog","description":"You can now interact with the Images API directly in your Worker with Image Bindings.","url":"https://edgetunnel-b2h.pages.dev/changelog/post/2025-02-21-images-bindings-in-workers/","inLanguage":"en","image":"https://edgetunnel-b2h.pages.dev/changelog-preview.png","dateModified":"2025-02-24","datePublished":"2025-02-24","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://edgetunnel-b2h.pages.dev/#website","name":"Cloudflare Docs","url":"https://edgetunnel-b2h.pages.dev/"}}
```
