Grayscale
AI-generatedSummary
Converts an input image to grayscale and returns it as a binary data item.
Inputs
- inputSource (required) — Source of the file to process: binary data from a previous node or a URL.
- binaryPropertyName (required) — Name of the binary property containing the input data (visible only when Input Source is Binary Data).
- fileUrl (required) — URL of the file to download and process (visible only when Input Source is URL).
- outputBinaryPropertyName — Name of the binary property for the output data.
- outputFormat — Optional target format for the grayscale output (e.g., jpg, png, webp). If empty, the original file extension is preserved.
Output shape
A binary data item with the grayscale image, paired with the original item data.
The output file name is auto-generated as
grayscale_[timestamp].[extension]. The operation preserves the original JSON context and usespairedItemto maintain the connection to the input item.
Examples
Example 1: Convert a PNG from a previous node to grayscale and save as JPG.
Input Source: Binary Data, Binary Property: data, Output Format: jpg
Example 2: Download an image from a remote URL and convert it to grayscale.
Input Source: URL, File URL: https://example.com/image.png, Output Format: png