Skip to content

Magic Wand

Magic Wand
Mask

Flood-fill selection by color - pick seed points and Magic Wand selects connected regions of similar color.

Magic Wand selects contiguous regions of similar color starting from one or more seed points. Unlike Color Range, which selects all matching pixels across the entire image, Magic Wand only selects pixels that are connected to a seed - making it ideal for removing a background without affecting interior areas of the same color.

Tolerance controls how different a neighboring pixel can be and still be included. Softness adds a gradual falloff at the selection boundary. After the initial selection, Expand/Contract grows or shrinks the mask, and Feather blurs the edges for smoother compositing. The Mode switch lets you either Remove the selected region (making it transparent) or Keep only the selected region.

Pins

ImageImage
InputRequired
ImageImage
Output
MaskMask
Output

Selection

Seed Points (%)Data
Default: [{"x":50.0,"y":50.0}]

Seed point list ({x, y} in %, edited via the position picker widget)

ToleranceNumber
Default: 15.0 Range: 0.0–100.0

Color similarity threshold for flood fill

SoftnessNumber
Default: 10.0 Range: 0.0–100.0

Edge softness at the tolerance boundary

Refine

ExpandInteger · px/%
Default: 0 Range: -50–50 px / -100–100%

Positive: expand selection. Negative: contract

FeatherNumber · px/%
Default: 0.0 Range: 0.0–50.0 px / 0–100%

Gaussian feather on the selection edge

Output

ModeChoice
Default: Remove

Remove: drop selected pixels. Keep

  • RemoveMake selected pixels transparent — removes the flood-filled region.
  • KeepKeep only the selected pixels — everything outside the flood fill becomes transparent.
  • Click the crosshair button then click the preview to place seed points - add multiple seeds to select disconnected regions.
  • Start with a low Tolerance and increase until the full background is captured.
  • Use Expand with a small positive value to push the selection edge past fringing artifacts.
  • For non-contiguous color selection (every matching pixel everywhere), use Color Range instead.
  • Switch to Keep mode to isolate the selected region on a transparent background.