Actions2
Remove Background
AI-generatedSummary
Remove the background from an input image, returning the processed image with options for output format, size, cropping, and color channels.
Inputs
- Input Binary Field (required) — Name of the binary property containing the image to process (e.g., 'data').
- Output Binary Field (required) — Name of the binary property to store the processed image (e.g., 'data').
- Options — Optional parameters to customize output: Background Color (hex, rgb, or color name, used only when channels is RGB), Channels (RGBA for transparent or RGB for opaque background, default 'rgba'), Crop to Subject (boolean to crop image to subject bounds, default false), Format (output image format: PNG, JPG, or WebP, default PNG), and Size (output image size preset: Full, Large, Medium, Preview, Small, default Full).
Output shape
a list of items each containing JSON metadata about the processing and a binary property with the background-removed image
Each output item includes metadata such as success status, request ID, processing time, and output image dimensions. The processed image binary is stored in the specified output binary property with an appropriate file extension and MIME type. Errors for individual items can be optionally returned if the node's 'Continue On Fail' is enabled.
Examples
Example 1: Remove background from an image stored in binary property 'photo', output result to 'noBackground'
Set 'Input Binary Field' to 'photo', 'Output Binary Field' to 'noBackground', and configure any desired options such as 'Format' to 'png' and 'Channels' to 'rgba'.