Make Selection
photopea_make_selectionCreate pixel selections in Photopea documents to isolate editing areas. Select the full canvas or define rectangular and elliptical regions with precise bounds and optional feathering.
Instructions
Create a pixel selection region in the active document. After creating a selection, use fill_selection to fill it with color, or clear_selection to deselect. Use type 'all' to select the entire canvas, or 'rect'/'ellipse' with bounds for a specific region.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Selection shape: 'all' selects the entire canvas, 'rect' creates a rectangle, 'ellipse' creates an ellipse | |
| bounds | No | Selection region bounds in pixels. Required for 'rect' and 'ellipse' types, ignored for 'all'. | |
| feather | No | Soft edge radius in pixels for anti-aliased selection edges (0 = hard edge) |