imgix APIsRendering APIBackgroundBackground Removal Foreground Type

Background Removal Foreground Type

bg-remove-fg-type

Premium Feature

Background Removal Foreground Type is available for Imgix customers on our Premium plans. If you’re interested in this feature, please contact our sales team for more information.

The Background Removal Foreground parameter sets the image type when bg-remove is set to true. It is intended to be used with bg-remove-add-shadow.

By default, bg-remove-fg-type is set to auto. While Imgix is able to detect the image accurately in many scenarios, this parameter gives you control in cases where an object might not be obviously detectable.

The parameter accepts auto and car as values.

  • auto (default): Automatically detects image type when bg-remove=true is applied.

  • car: Sets image type as car.

Questions

Please contact your Account Manager or Support if you have any questions or feedback.