Filters

Make sure to read our Getting Started guide if you aren't sure how to use the ImageBoss Filters.

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

Extract

The extract filter allows you to select a sub-region of the source image to use for processing before applying other resize operations.


Available Options

rct-l, rct-t, rct-w, rct-h are the parameters for the extract filter. They represent the starting coordinates of x and y, and the width and height, all separated by commas.


API Example

https://img.imageboss.me /mywebsite-images /width /700 /rct-l:500,rct-t:200,rct-w:500,rct-h:400 /examples/04.jpg


Example 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="rct-l:500,rct-t:200,rct-w:500,rct-h:400"
    width="700"
/>

Original

Modified