Interface: BackgroundRemovalProvider
@fastlabai/design-editor / BackgroundRemovalProvider
Interface: BackgroundRemovalProvider
Section titled “Interface: 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.
Methods
Section titled “Methods”remove()
Section titled “remove()”remove(
input,opts?):Promise<Blob>
Defined in: providers/backgroundRemoval.ts:8
Remove the background from the given image and return a transparent-PNG Blob.
Parameters
Section titled “Parameters”string | Blob
onProgress?
Section titled “onProgress?”(pct) => void
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<Blob>