Skip to content

Magic Wand

Magic Wand
Mask

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.

Selection

Seed PointsData
Default: [{x:50, y:50}]

Seed positions as relative percentages (0–100 %); flood fill starts from each

ToleranceNumber
Default: 15.0 Range: 0–100

Colour distance threshold; higher = selects more similar pixels

SoftnessNumber
Default: 10.0 Range: 0–100

Gradient falloff at the tolerance boundary; 0 = hard edge

Refine

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

Morphological expand (positive) or contract (negative) of the selection

Feather pxNumber · px/%
Default: 0.0 Range: 0–50 / 0–100

Gaussian blur on mask edges for softer transitions

Output

ModeChoice
Default: Remove

0 = Remove (selected → transparent), 1 = Keep (only selected is kept)

  • RemoveMake selected pixels transparent — removes the flood-filled region.
  • KeepKeep only the selected pixels — everything outside the flood fill becomes transparent.
Notes

Seed points use normalised percentages so the selection is independent of input image resolution. The position picker uses the preview panel manipulator system — click the crosshairs button then click on the preview to set a seed. Multiple seeds are combined with max (union) before expand and mode are applied. Softness uses a cosine ramp within the tolerance boundary, matching the Color Range node pattern.