WorkersでURLベースの画像最適化が利用可能に
原題: URL-based image optimization in Workers
changelog / Media/Realtime / Cloudflare Images, Workers / 2026/11/25 09:00 JST
Cloudflare ImagesのURLベースの画像最適化が、Workersのworkers.devサブドメインでも使えるようになった。これまではカスタムドメイン経由でしか利用できず、ローカル開発時にも使えなかったが、Workerスコープの設定により、デプロイ済みWorkerとローカル開発の両方で変換URLが利用できる。カスタムドメインではゾーン設定よりWorker側の設定が優先される。画像のリサイズやフォーマット変換をWorkerだけで完結させたい開発者にとって、手軽さが増す改善だ。
出典サイトで原文を開く → 出典サイトの説明: Configure image transformation URLs per Worker for workers.dev, local development, and custom domains.
In Images , you can add optimization parameters directly to transformation URL requests to optimize images from any origin. Workers now supports the Images 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 or in cloudflare.config.ts for Cloudflare CLI : 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.ts ts import { defineConfig } from “cf/config” ; e
出典: 公式ページ