

Can be a single value (all sides), two values (top/bottom and left/right) or four values (top, right, bottom, left). "30px") or relative to the subject size (e.g. Note that cropping has no effect on the amount of charged credits.Īdds a margin around the cropped subject (default: 0). Whether to crop off all empty regions (default: false). Can be "original" (default unless "scale" is given), "center" (default when "scale" is given) or a value from "0%" to "100%" (both horizontal and vertical) or two values (horizontal, vertical). Positions the subject within the image canvas. Scaling the subject implies "position=center" (unless specified otherwise). Can be any value from "10%" to "100%", or "original" (default). Scales the subject relative to the total image size.

Result image format, the default is "auto" which produces a. Help the API a little by telling the type of image you want to extract the background from. The cheaper "preview" option is default, while "auto" uses the highest available resolution (based on image size and available credits. "preview" (same as "small" or "regular"), "full" (same as "4k"), "medium", "hd", "auto" The API key you got from the remove.bg website. The common input parameters of all three currently supported removeBackgroundFrom* functions are: Look at the various removeFrom*.ts files in the examples folder, or check out the snippets below.
