Skip to content

Trim

Node icon
Transform

Auto-crops transparent edges from an image, tightening the bounding box around visible content.

Trim detects the edges of an image and crops them away, leaving only the visible content plus an optional padding margin. Three modes are available: Transparent (default) trims pixels based on alpha transparency, Top-Left Color trims pixels matching the top-left corner’s color, and Bottom-Right Color trims pixels matching the bottom-right corner’s color. A tolerance slider controls how close a pixel’s color must be to count as a match.

This is typically used early in a pipeline to normalize sizing before applying effects, ensuring every variant starts from a tight crop.

Transform

ModeChoice
Default: Transparent Pixels

Trim source: Transparent Pixels / Top-Left Color / Bottom-Right Color

  • Transparent PixelsTrim based on the alpha channel. Removes rows and columns of fully transparent pixels from each edge.
  • Top-Left ColorTrim pixels matching the top-left corner color within the tolerance. Useful for removing solid-color borders.
  • Bottom-Right ColorTrim pixels matching the bottom-right corner color within the tolerance. Use when the border color differs from the top-left.
Threshold / ToleranceInteger
Default: 30 Range: 0–255

In alpha mode: pixels with alpha above this are kept (0=any visible). In color mode: Euclidean RGBA distance tolerance (0=exact match)

Padding pxInteger
Default: 0 Range: 0–500

Extra pixels to keep around trimmed content

Notes

Transparent Pixels mode trims based on the alpha channel. Top-Left Color and Bottom-Right Color modes trim pixels matching the chosen corner's color within the tolerance. Label changes to "Tolerance" in color modes.

  • Use Trim right after Image In to remove extra transparent space from source assets.
  • Add a few pixels of padding to keep a safety margin around the content.
  • A threshold of 0 keeps any pixel with alpha > 0; raise it to also trim nearly-invisible pixels.
  • Use Top-Left Color or Bottom-Right Color mode to trim solid-color backgrounds (e.g., white or black borders) from images without transparency.