Filters

If you have any doubts on how to use this, make sure you read our Getting Started guide.

  • :options is one of the fragments available for use on ImageBoss API.

Trim

It trims "boring" pixels from all edges that contain values within a percentage similarity of the top-left pixel. You can combine this option with any operation available.

trim accepts any value between 1 and 80.

API Example

https://img.imageboss.me /mywebsite-images /width /700 /trim:60 /examples/02.jpg


Using ImageBoss Web Library

<img
    src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="
    data-imageboss-src="/examples/02.jpg"
    data-imageboss-operation="width"
    data-imageboss-options="trim:60"
    width="700"
/>

Original

Modified