Keep existing transparency

When the input image already contains transparency information inside an alpha channel, the Image Editing API lets you decide whether to conserve or discard this information.

For this, set the parameter keepExistingAlphaChannel to:

  • never (default): an existing alpha channel will be ignored and the image will be processed through Photoroom's background removal

  • auto: if the image has an alpha channel, its value will be used to create the cutout mask

(original image)

keepExistingAlphaChannel=never

and

background.color=blue

keepExistingAlphaChannel=auto

and

background.color=blue

Last updated

Was this helpful?