ncloud_imageoptimizer_create_rule
Create image transformation rules for Image Optimizer projects. Preview changes using dryRun before saving.
Instructions
Create a new transformation rule for an Image Optimizer project. Use dryRun=true to preview without creating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Target width in pixels | |
| dryRun | No | If true, returns a preview without actually creating the rule | |
| format | No | Output image format | |
| height | No | Target height in pixels | |
| quality | No | Output quality (1-100, default: 75) | |
| ruleName | Yes | Rule name | |
| projectId | Yes | Project ID to add the rule to | |
| autorotate | No | Whether to auto-rotate based on EXIF data | |
| resizeType | No | Resize type: f(fit), w(width), h(height), fw(force width), fh(force height), wh(width+height), h_wm(height with watermark) |