Remove the background of an image
Erase Background transformation allows users to focus on the subject of an image and create a transparent background.
Removing the background helps you use a single image in a variety of ways.
Params
Industry Type (i
)
The usage type for the output image.
Available values are general
, ecommerce
and car
. The default is general
.
general
The general
industry type can be applied to all types of images.
- Original
- Industry Type = general (default)
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/lady.jpeg" />
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/erase.bg()/images/transformation/lady.jpeg" />
ecommerce
The ecommerce
industry type should be applied to images from e-commerce websites or any e-commerce product. It is specially trained and tuned for e-commerce images like apparel, shoes etc.
- Original
- Industry Type = ecommerce
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/shirt.jpeg" />
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/erase.bg(i:ecommerce)/images/transformation/shirt.jpeg" />
car
The car
industry type should be applied to images that contain cars. This will erase not just the backdrop from car images, but also the background viewed through the car windows.
- Original
- Industry Type = car
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/car.jpeg" />
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/erase.bg(i:car)/images/transformation/car.jpeg" />
The car
industry type is in preview mode.
Shadow (shadow)
Adds shadow to the output image. shadow
is an alias for this parameter.
Only usable when images are cars
. The default is false
.
- Original
- default
- shadow=true
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/race_car.jpeg" />
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/erase.bg()/images/transformation/race_car.jpeg" />
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/erase.bg(shadow:true)/images/transformation/race_car.jpeg" />