Actions12
Fill Masked Areas
AI-generatedSummary
Fill masked areas in an image using Adobe Photoshop's generative fill or content-aware fill methods.
Inputs
- Source Image (JSON) (required) — Configuration specifying the storage location of the source image to be processed.
- Mask Image (JSON) (required) — Configuration specifying the storage location of the mask image that identifies the areas to fill.
- Output Storage (JSON) (required) — Configuration specifying where to store the resulting image, including output format.
- Fill Method (required) — The method to fill the masked areas: 'Generative Fill' uses a text prompt to guide AI generation, while 'Content Aware' uses context-based filling without a prompt.
- Prompt — A text prompt to guide the generative fill AI; required only if 'Fill Method' is set to 'Generative Fill'.
Output shape
a JSON array containing the resulting filled image stored at the configured output location
The operation requires all JSON storage configurations (source image, mask image, and output) to specify external locations. When using 'Generative Fill', the prompt must be provided; otherwise, it is ignored. The output image format is determined by the output storage configuration's 'type' attribute.