Skip to content

Operations

A pipeline is an ordered list of operations. The current shared contract validates these six operation types before any input is processed:

Operation Use it for Reference
resize Proportional limits or exact dimensions with a declared fit. Resize
crop An explicit area or anchored target dimensions. Crop
trim Removing transparent borders from compatible images. Trim
padding Adding transparent or colored space around an image. Padding
convert Writing PNG, JPEG, or WebP output and choosing quality. Convert
strip-metadata Removing EXIF and unnecessary metadata. Strip metadata

There is no separate compress operation. Compression is expressed by choosing an output format and, for JPEG/WebP, a quality value on convert.

Resize or crop before conversion when you want to reduce the amount of work and control the final dimensions. Strip metadata near the end so the output is clean. The pipeline guide shows a complete example.