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.

Using Rules

Examples

rule pattern operations and filters
-avatar.jpg func=crop&w=300&h=300&radius=max

The filename matching the sample rule

/v7/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 pattern operations and filters
-avatar.jpg func=crop&w=300&h=300&radius=max