Actions23
- Add Object by Text
- Blend Images
- Blur Background
- Colorize
- Crop out Foreground
- Enhance Image
- Erase (Mask-based)
- Erase Foreground
- Erase Object by Text
- Expand Image (Outpainting)
- Generate Structured Instruction
- Generative Fill
- Image Edit by Text (FIBO)
- Increase Resolution (Upscaling)
- Relight Image
- Remove Background
- Replace Background
- Replace Object by Text
- Reseason Image
- Restore Old Images
- Restyle Image
- Rewrite (Text in Image)
- Sketch to Image
Crop out Foreground
AI-generatedSummary
Crop the foreground of an image via Bria AI and return the resulting image as binary data.
Inputs
- main (required) — The input item carrying the image URL via the
imageUrlparameter.
Output shape
array
Returns an array of items. Each item contains
jsonwith the final API response metadata andbinarywith the cropped foreground image data prepared asimage/png.
Examples
Example 1: Basic foreground crop
Provide an imageUrl and leave maxRetries and waitTime at their defaults. The node polls the Bria AI status endpoint until the crop operation completes, then returns the resulting image as binary data alongside response metadata.