Search…
Overview
Quick Start
Authentication
Rate limits
Errors
Image Editing API
Image I/O
Image Operations
Restorations
Resizing
Color Adjustments
Background
Padding
API Reference
Storage Connectors
Overview
AWS S3
Google Cloud Storage
Web Folder
API Reference
Guides
E-commerce
Real Estate
Printing
Redoc
Blog
Powered By
GitBook
Background
The background section contains all background properties, such as removing the background and setting the color.
Background removal
Remove image background. This operation offers both fully automated mode and advanced manual options.
Possible values:
Value
Type
Description
true
boolean
Removes image background.
false
boolean
Default
. Keeps the background of the original image intact.
​
​
Remove
JSON Request
1
"operations"
:
{
2
"background"
:
{
3
"remove"
:
true
4
}
5
}
Copied!
​
Background
color
The image background. You can set transparent background or any color.
​
Possible values
Value
Type
Description
transparent
string
To set transparent background the image format should support an alpha channel ( PNG or WEBP) otherwise the background will be white.
color
string
Set the color of the background. Default is white color.
​
JSON Request
Transparent
Color
1
"operations"
:
{
2
"background"
:
{
3
"remove"
:
true
,
4
"color"
:
"transparent"
5
}
6
}
Copied!
1
"operations"
:
{
2
"background"
:
{
3
"remove"
:
true
,
4
"color"
:
"#C5C6FF"
5
}
6
}
Copied!
Previous
Color Adjustments
Next
Padding
Last modified
21d ago
Copy link
Edit on GitHub
Contents
Background removal
Background color