---
title: "Cloudflare Images, Workers - URL-based image optimization in Workers — Cloud Changelog"
description: "In Images, you can add optimization parameters directly to transformation URL requests to optimize images from any origin. Workers now supports the Images…"
url: "https://cloudchangelog.com/cloudflare/2026-11-25-worker-scoped-url-transformations"
updated: "2026-11-25"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W48)

November 25, 2026 · Cloudflare

# Cloudflare Images, Workers - URL-based image optimization in Workers

- [Cloudflare Images](https://cloudchangelog.com/products/cloudflare/images)
- [Workers](https://cloudchangelog.com/products/cloudflare/workers)
- [Media, games and IoT](https://cloudchangelog.com/search?q=media-games-iot)
- [Serverless](https://cloudchangelog.com/search?q=serverless)

## What changed

**Images URL transformations in Workers:** Worker-scoped settings enable transformation URLs on workers.dev subdomains and in local development.

In [Images](https://developers.cloudflare.com/images/), you can add [optimization parameters](https://developers.cloudflare.com/images/optimization/features/) directly to [transformation URL requests](https://developers.cloudflare.com/images/optimization/features/#url-interface) to optimize images from any origin.

[Workers](https://developers.cloudflare.com/workers/) now supports the Images [URL interface](https://developers.cloudflare.com/images/optimization/features/#url-interface) directly on `workers.dev` subdomains through new Worker-scoped configuration. For example, a Worker can serve this transformation URL without connecting a custom domain:

```
https://example-app.<YOUR_SUBDOMAIN>.workers.dev/cdn-cgi/image/format=auto,width=400/image.png
```

Previously, transformation URLs were not available on `workers.dev` subdomains or during local development. A Worker could serve transformation URLs only through a connected custom domain when the URL interface was enabled for that zone.

The new Worker-scoped settings apply to deployed Workers and during local development. On connected custom domains, they override the zone-scoped settings.

Configure the settings in your [Wrangler configuration file](https://developers.cloudflare.com/workers/wrangler/configuration/) or in [`cloudflare.config.ts`](https://developers.cloudflare.com/cf/projects/cloudflare-config/) for [Cloudflare CLI](https://developers.cloudflare.com/cf/):

The following content appears twice: first for the Cloudflare CLI (`cf`), then for Wrangler. Use `cf` for new projects. In an existing project, use the CLI that the project already uses.

Cloudflare CLI

cloudflare.config.tsts

```
import { defineConfig } from "cf/config";

export default defineConfig({
worker: {
  name: "image-app",
  // Set this to today's date
  compatibilityDate: "2026-11-25",
  images: {
    urlTransformations: {
      enabled: true,
      allowedOrigins: [
        "images.example.com",
        "image-app.<YOUR_SUBDOMAIN>.workers.dev",
      ],
    },
  },
},
});
```

Wrangler

```
{
  "$schema": "./node_modules/wrangler/config-schema.json",
  "images": {
    "url_transformations": {
      "enabled": true,
      "allowed_origins": [
        "images.example.com",
        "image-app.<YOUR_SUBDOMAIN>.workers.dev"
      ]
    }
  }
}
```

```
[images.url_transformations]
enabled = true
allowed_origins = [
  "images.example.com",
  "image-app.<YOUR_SUBDOMAIN>.workers.dev",
]
```

Set `enabled` to `true` to turn on transformation URLs.

By default, Workers accepts source images only from the same zone as the transformation URL. To use external source images, specify up to 10 [hostnames](https://developers.cloudflare.com/images/optimization/transformations/sources/#how-it-works) using `allowed_origins` in Wrangler or `allowedOrigins` in `cloudflare.config.ts`.

Deployed settings remain active if you remove the configuration. To disable transformation URLs on a Worker, deploy with `enabled` set to `false`. Named Wrangler environments require their own configuration, and [Version URLs](https://developers.cloudflare.com/workers/versions-and-deployments/version-urls/) support transformation URLs using the Worker's deployed settings.

`wrangler deploy` and `cf deploy` apply the same settings to the Worker, while `wrangler dev` and `cf dev` use them locally.

Transformation URLs do not require an [`IMAGES` binding](https://developers.cloudflare.com/images/optimization/binding/). Transformed results are automatically cached in production.

Refer to [Transform via URL](https://developers.cloudflare.com/images/optimization/transformations/url/) for URL syntax and configuration methods.

Get the week’s Cloudflare changes in one email

Your email address

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

[See last week’s digest](https://cloudchangelog.com/digests/weekly-2026-W47#provider-cloudflare)

Free. Unsubscribe any time.

[Read on developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-11-25-worker-scoped-url-transformations/)

## Related updates

- Nov 18, 2026

  [Cloudflare Images - A new, consistent language across Images interfaces](https://cloudchangelog.com/cloudflare/2026-11-18-consistent-optimization-interfaces)
- Feb 24, 2025

  [Cloudflare Images - Bind the Images API to your Worker](https://cloudchangelog.com/cloudflare/2025-02-21-images-bindings-in-workers)
- Sep 23, 2026

  [Cloudflare Images - View transformation analytics in Images](https://cloudchangelog.com/cloudflare/2026-09-23-transformation-analytics)
- Jun 16, 2026

  [Cloudflare Images - New optimization features in Images](https://cloudchangelog.com/cloudflare/2026-06-16-new-optimization-features)
- Sep 17, 2025

  [Workers - Preview URLs now default to opt-in](https://cloudchangelog.com/cloudflare/2025-09-17-update-preview-url-setting)

[All Cloudflare Images changes](https://cloudchangelog.com/products/cloudflare/images)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
