Skip to main content

Background Removal

PhotoEditor SDK allows to quickly remove the background from pictures of people.

The background removal feature is available for any pictures or (non-animated) personal and external stickers, where a face or human body can be detected. It is supported on iOS 15+ and Android 5+.

Remove background

This effect can be used to create transparent stickers, avatars, or collages:

Removed background

WARNING: The background removal overlay action does not work properly on the iOS simulator. To see background properly removed on iOS please use this action on the physical device.

Adding background removal option#

Introduced in PhotoEditor SDK v2.6.0

To enable background removal, add MainCanvasAction.removeBackground to the Configuration.mainCanvasActions property:

final configuration = Configuration(mainCanvasActions: [

WARNING: To achieve the effect of transparency in exported images, make sure that your output format supports that (e.g. set Configuration.export.image.format to ImageFormat.png).