Firefly - Photoshop icon

Firefly - Photoshop

Interact with Adobe Photoshop API for image manipulation

Mask Objects

AI-generated

Summary

Mask specific types of objects in an image by providing input storage details, selecting object types to mask, and defining output storage configuration for the mask result.

Inputs

  • Input Storage (JSON) (required) — JSON configuration specifying where and how to retrieve the input image to be processed for masking.
  • Output Storage (JSON) (required) — JSON configuration specifying the storage location and format details where the resulting mask image will be saved.
  • Object Types (required) — Select one or more object categories (e.g., person, animal, vehicle) to create masks for within the input image.

Output shape

a single JSON object per input item containing the result data from the mask operation

The output corresponds to the processed mask image stored as configured; no additional pagination or streaming is involved.

Examples

Example 1: Masking all persons and vehicles in an image

Set Input Storage JSON to point to a hosted image, select 'person' and 'vehicle' in Object Types, and set Output Storage JSON to define where the masked output image should be saved.

Discussion