Image
| Node | Description | Inputs | Outputs |
|---|---|---|---|
| blur | Applies Gaussian blur to an image. | image Image, sigma Number | image Image |
| brightness | Adjusts image brightness. | image Image, amount Number | image Image |
| canvas | Creates a blank image of a solid color with optional transparency. | width Number, height Number, color Text | image Image |
| contrast | Adjusts image contrast. | image Image, amount Number | image Image |
| crop | Crops an image to a rectangular region. | image Image, x Number, y Number, width Number, height Number | image Image |
| flip | Flips an image horizontally or vertically. | image Image, axis Text | image Image |
| grayscale | Converts an image to grayscale. | image Image | image Image |
| info | Returns image metadata (width, height). | image Image | width Number, height Number, info Json |
| invert | Inverts image colors. | image Image | image Image |
| load | Loads an image from disk. | path Text | image Image |
| resize | Resizes an image to the given dimensions. | image Image, width Number, height Number | image Image |
| resize_fit | Resizes an image to fit within dimensions while preserving aspect ratio. | image Image, max_width Number, max_height Number | image Image |
| rotate | Rotates an image by 90, 180, or 270 degrees. | image Image, degrees Number | image Image |
| save | Saves an image to disk. | image Image, path Text | path Text |
| to_ansi | Converts an image to ANSI terminal escape sequences. | image Image, width Number, mode Text, color Text | ansi Text |
blur
Applies Gaussian blur to an image.
Inputs:
image(Image) — source image as base64sigma(Number) — blur radius (higher = more blur)
Output: image (Image) — blurred image as base64
brightness
Adjusts image brightness.
Inputs:
image(Image) — source image as base64amount(Number) — adjustment (-255 to 255)
Output: image (Image) — brightness-adjusted image
See also: contrast
canvas
Creates a blank image of a solid color with optional transparency.
Inputs:
width(Number) — canvas width in pixelsheight(Number) — canvas height in pixelscolor(Text) — fill color as hex (#RRGGBB or #RRGGBBAA)
Output: image (Image) — solid-color RGBA image as base64
See also: color/from_hex, drawing/overlay
contrast
Adjusts image contrast.
Inputs:
image(Image) — source image as base64amount(Number) — adjustment (negative = less, positive = more)
Output: image (Image) — contrast-adjusted image
See also: brightness
crop
Crops an image to a rectangular region.
Inputs:
image(Image) — source image as base64x(Number) — left edge in pixelsy(Number) — top edge in pixelswidth(Number) — crop width in pixelsheight(Number) — crop height in pixels
Output: image (Image) — cropped image as base64
See also: resize, resize_fit
flip
Flips an image horizontally or vertically.
Inputs:
image(Image) — source image as base64axis(Text) — ‘horizontal’ or ‘vertical’
Output: image (Image) — flipped image as base64
See also: rotate
grayscale
Converts an image to grayscale.
Inputs:
image(Image) — source image as base64
Output: image (Image) — grayscale image as base64
See also: invert, brightness
info
Returns image metadata (width, height).
Inputs:
image(Image) — image to inspect
Outputs:
width(Number) — image width in pixelsheight(Number) — image height in pixelsinfo(Json) — {width, height} metadata object
invert
Inverts image colors.
Inputs:
image(Image) — source image as base64
Output: image (Image) — color-inverted image
See also: grayscale, color/complement
load
Loads an image from disk.
Inputs:
path(Text) — path to image file
Output: image (Image) — loaded image as base64 data URI
resize
Resizes an image to the given dimensions.
Inputs:
image(Image) — source image as base64width(Number) — target width in pixelsheight(Number) — target height in pixels
Output: image (Image) — resized image (exact dimensions)
See also: resize_fit, crop
resize_fit
Resizes an image to fit within dimensions while preserving aspect ratio.
Inputs:
image(Image) — source image as base64max_width(Number) — maximum width in pixelsmax_height(Number) — maximum height in pixels
Output: image (Image) — resized image (aspect ratio preserved)
rotate
Rotates an image by 90, 180, or 270 degrees.
Inputs:
image(Image) — source image as base64degrees(Number) — rotation angle (90, 180, or 270)
Output: image (Image) — rotated image as base64
See also: flip
save
Saves an image to disk.
Inputs:
image(Image) — image data as base64path(Text) — destination file path
Output: path (Text) — path that was written to
See also: load
to_ansi
Converts an image to ANSI terminal escape sequences.
Inputs:
image(Image) — source image as base64width(Number) — output width in columnsmode(Text) — half-block (▀, 2px/cell), pixel (square), density (ascii art), or density-color (colored ascii)color(Text) — truecolor (24-bit) or 256 (8-bit palette)
Output: ansi (Text) — ANSI escape sequence string