Compress images with YAML

YAML parameters for Compress images

Name Type Description
action Required String The ID of the action.
type Required String The type of the action. Should be set to IMAGE_COMPRESSION.
local_path Required String The path in the repository.
destination Required String Output directory for compressed images.
level Required String The level of image compression. Can be set to 1 (low), 2 (medium) or 3 (high).
types Required String Supported image formats. Available types: jpg, png, gif, svg.

YAML example for Compress images

yaml
actions: - action: "Compress images" type: "IMAGE_COMPRESSION" local_path: "assets/" destination: "compressed_images/" level: "2" types: "jpg,png,gif,svg"

Last modified on Mar 4, 2025