atomicSelections & masks

photoshop_expand_selection

Expand the active pixel selection outward by a pixel amount. Use when: growing a tight subject selection or adding padding before feather/fill. Do NOT use when: no selection exists — create one first. Returns: JSON { ok, summary, details: { pixels, bounds?, context } }. Preconditions: active document and active pixel selection. Side effects: modifies selection.

Parameters

NameTypeRequiredDescription
pixelsnumberyesPixels to expand by (minimum 1)

Community recipes

Nothing here yet. Be the first to share one.

Share a recipe