Cloudimage - Documentation

Blurred background

When using fit operation, padding may be added to the resized image. To fill the padding with the image itself, use the bg_img_fit=1 operation together with fit.

Default options

When you include the bg_img_fit=1 option, the default settings are used.

/sample.li/boat.jpg?func=fit&w=400&h=330&bg_img_fit=1

Opacity

You can control the background opacity with bg_opacity=X - X between 0 and 1.

/sample.li/boat.jpg?func=fit&w=400& h=330&bg_img_fit=1&bg_opacity=0.85

Blur

You can set the radius of the Gaussian blur applied to the background with bg_blur=X.

/sample.li/boat.jpg?func=fit&w=400&h=330&
bg_img_fit=1&bg_blur=10&bg_opacity=0.8

Colourise

To tint the background, use bg_colourise=X with X being the colour code or name.

/sample.li/boat.jpg?func=fit&w=400&h=330& bg_img_fit=1&bg_opacity=0.7&bg_colourise=red

If you are migrating from Cloudimage APIv6, you could use the legacy blending mode for blurred backgrond colourise (lc prefix): bg_colourise=lc330000 or bg_colourise=lcblack.