Rules

Apply transformation rules based on url pattern

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

All Image operations and Image filters can be included in a rule, as well as Image watermarking and Image compression parameters.

Defining rules

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

Using Rules

Examples

Rule patternOperations and filters

-avatar.jpg

func=crop&w=300&h=300&radius=max

Here is an image using the rules from above:

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.jpg

func=crop&w=300&h=300&radius=max

Adding more parameters or overriding some of the parameters from above:

Last updated