Contents

Process Image

process_image · Nodes · Data

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

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.
{
  "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.

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
max_dimensionintegerNoMaximum width or height in pixels
grayscalebooleanNoConvert output to grayscale
target_formatenum(webp, png, jpeg)NoOutput image format
strip_metadatabooleanNoRemove source metadata from output
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).