Compress images with YAML

YAML parameters for Compress images

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to IMAGE_COMPRESSION.
local_path RequiredStringThe path in the repository.
destination RequiredStringOutput directory for compressed images.
level RequiredStringThe level of image compression. Can be set to 1 (low), 2 (medium) or 3 (high).
types RequiredStringSupported 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 Sep 24, 2024