Skip to content

Commit b1c251d

Browse files
committed
Added Images Binding to Workers
1 parent a7e5c3e commit b1c251d

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/content/docs/workers/local-development.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ npx wrangler dev
4141
| Durable Objects |||
4242
| Email Bindings |||
4343
| Hyperdrive |||
44+
| Images |||
4445
| KV |||
4546
| mTLS |||
4647
| Queues |||
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
pcx_content_type: navigation
3+
title: Images
4+
external_link: /images
5+
head: []
6+
description: Store, transform, optimize, and deliver images at scale.
7+
8+
---

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,23 @@ id = "<ID>"
658658

659659
</WranglerConfig>
660660

661+
### Images
662+
663+
[Cloudflare Images](/images/transform-images/transform-via-workers/) lets you make transformation requests to optimize, resize, and manipulate images stored in remote sources.
664+
665+
To bind Images to your Worker, assign an array of the below object to the `images` key.
666+
667+
`binding` (required). The name of the binding used to refer to the Images API.
668+
669+
<WranglerConfig>
670+
671+
```toml title="wrangler.toml"
672+
[[images]]
673+
binding = "IMAGES" # i.e. available in your Worker on env.IMAGES
674+
```
675+
676+
</WranglerConfig>
677+
661678
### KV namespaces
662679

663680
[Workers KV](/kv/api/) is a global, low-latency, key-value data store. It stores data in a small number of centralized data centers, then caches that data in Cloudflare’s data centers after access.

0 commit comments

Comments
 (0)