Accounts created before Nov. 1st, 2021
Accounts created before November 1, 2021 have to include /v7/ in the path, like shown below.
//token.cloudimg.io/v7/original_image_url?operations&filters
Accounts created on or after November 1, 2021 do not require /v7/ and documentation have been updated accordingly.
To verify the type of configuration on your Cloudimage account, log in to your Cloudimage admin panel and look at the syntax provided on the Welcome page.
[NOTE] If you are an existing Cloudimage customer and wish to be able to remove the v7 from your URL syntax, please contact our support.
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.