# Process Image

Transforms an image and outputs binary bytes. Connect Upload Media to persist.

## Input

- `input`: same resolvable media inputs as Upload Media (URL, `object_id`, or `{binary}` from upstream nodes).
- URL input may be downloaded and transformed without storing the original.

## Config

- `max_dimension`: maximum width or height. Default: `2000`.
- `grayscale`: convert to grayscale. Default: `false`.
- `target_format`: `webp`, `png`, or `jpeg`. Default: `webp`.
- `strip_metadata`: remove source metadata. Default: `true`.

## Output

- `output`: `{binary, filename, content_type, width, height}` — the processed image as inline binary data.

```json
{
  "binary": { "__binary__": true, "mime_type": "image/webp", "size_bytes": 48293 },
  "filename": "processed.webp",
  "content_type": "image/webp",
  "width": 1920,
  "height": 1080
}
```

## Storage

ProcessImage no longer auto-uploads to durable storage. To persist the result, connect the `output` socket to an Upload Media node:

```
[Process Image] → [Upload Media]
```

Binary data flows through the graph inline. The Upload Media node is the explicit storage gate — nothing is written to S3 unless you wire it through Upload Media.

## Limits

- URL downloads are bounded to 50 MB.
- URL downloads reach public addresses only, under the same rules as Upload Media.
- Non-image inputs are rejected after byte resolution.
