Rules
Apply transformation rules based on url pattern
Last updated
Apply transformation rules based on url pattern
Last updated
Copyright © 2023 Scaleflex
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.
You can define your presets in the admin panel, Image Settings / Rules.
Here is an image using the rules from above:
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:
Adding more parameters or overriding some of the parameters from above:
Rule pattern | Operations and filters |
---|---|
Preview | Syntax |
---|---|
Rule pattern | Operations and filters |
---|---|
Preview | Syntax |
---|---|
-avatar.jpg
func=crop&w=300&h=300&radius=max
-avatar.jpg
func=crop&w=300&h=300&radius=max