Skip to content

Interface: BackgroundRemovalProvider

@fastlabai/design-editor


@fastlabai/design-editor / BackgroundRemovalProvider

Defined in: providers/backgroundRemoval.ts:6

Plug in a background-removal backend. The default provider uses the optional @imgly/background-removal peer dep to run in-browser; you can supply a server-side provider here instead.

remove(input, opts?): Promise<Blob>

Defined in: providers/backgroundRemoval.ts:8

Remove the background from the given image and return a transparent-PNG Blob.

string | Blob

(pct) => void

AbortSignal

Promise<Blob>