Cloudimage - Documentation

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.

Rules

Cloudimage lets you define transformation rules based on image path and filename pattern matching.

Any resizing transformation or image filter can be included in a rule, as well as watermarks and image compression parameters.

Defining rules

You can define your presets in the admin panel, Image Settings / Rules.

Photo alt \#responsive

Using Rules

Examples

rule patternoperations and filters
-avatar.jpgfunc=crop&w=300&h=300&radius=max

The filename matching the sample rule

/sample.li/user-78745-avatar.jpg

Extending and overriding rules

You can add additional operations together with a preset. If an operation or a filter already exists, the value provided in the URL will take precedence over the one in the rule. Here is an example:

rule patternoperations and filters
-avatar.jpgfunc=crop&w=300&h=300&radius=max