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.
Rule pattern | Operations and filters |
---|---|
-avatar.jpg | func=crop&w=300&h=300&radius=max |
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:
Rule pattern | Operations and filters |
---|---|
-avatar.jpg | func=crop&w=300&h=300&radius=max |
Adding more parameters or overriding some of the parameters from above: