Background Removal
The option automatically removes the background from your images. Use it for product photos, portraits, or any image where you want a transparent (or clean) background.
accepts true or 1 as the value. You can combine it with any operation (e.g. width, cover) and other options.
API Example
https://img.imageboss.me /mywebsite-images /width /500 /examples/04.jpg
Using ImageBoss Web Library
<img
src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="
data-imageboss-src="/examples/04.jpg"
data-imageboss-operation="width"
data-imageboss-options="bg-remove:true"
width="500"
/>
Details
- The output format is PNG so that transparency is preserved. If you request another format, ImageBoss will use a format that supports transparency where possible.
- Background removal works best on images with a clear subject and a distinct background.
- Combine with trim to remove excess transparent edges after removal.