Actions12
Mask Body Parts
AI-generatedSummary
Create masks for specified body parts within an image using Adobe Photoshop's AI-powered services.
Inputs
- Input Storage (JSON) (required) — Specifies the storage location and access details of the input image to be processed, provided as a JSON configuration containing at least a URL (href) and storage type.
- Output Storage (JSON) (required) — Specifies the storage location and details for the output masked image, including format type (e.g., image/png), provided as a JSON configuration.
- Body Parts (required) — Select one or multiple predefined body parts (e.g., face, hair, left arm) to be masked in the image.
Output shape
a single JSON array containing an object with metadata or reference for the processed masked image output file.
The output is stored as defined by the output storage JSON parameter. The operation requires valid input and output storage configurations and will return the mask image with the selected body parts masked.
Examples
Example 1: Mask the face and hair in a portrait image stored externally and save the result as a PNG file in external storage.
Input storage JSON points to the input image URL; Output storage JSON specifies external storage and output type image/png; Body Parts set to ['face', 'hair'].