Compress images with YAML
List of YAML parameters and examples for the \"Compress images\" action
YAML parameters for Compress images
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | The ID of the action. |
type 必填 | String | The type of the action. Should be set to IMAGE_COMPRESSION . |
local_path 必填 | String | The path in the repository. |
destination 必填 | String | Output directory for compressed images. |
level 必填 | String | The level of image compression. Can be set to 1 (low), 2 (medium) or 3 (high). |
types 必填 | String | Supported image formats. Available types: jpg , png , gif , svg . |
YAML example for Compress images
actions:
- action: "Compress images"
type: "IMAGE_COMPRESSION"
local_path: "assets/"
destination: "compressed_images/"
level: "2"
types: "jpg,png,gif,svg"