Cloudimage - Documentation

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