Reference

Operations with a clear contract.

Each page describes one operation that is implemented in the shared pipeline contract. Examples are written for the current schema version, not a future feature list.

convert

Convert and choose quality

Write PNG, JPEG, or WebP output and control lossy JPEG or WebP quality.

Read operation
crop

Crop an image

Crop an explicit rectangle or an anchored target area from a source image.

Read operation
padding

Add padding

Add transparent or colored space around an image with independently controlled sides.

Read operation
resize

Resize images

Limit image dimensions or create an exact canvas while declaring how the image should fit.

Read operation
strip-metadata

Strip metadata

Remove EXIF and unnecessary metadata from the output at the end of a pipeline.

Read operation
trim

Trim transparent borders

Remove unnecessary transparent borders from compatible images with an explicit alpha threshold.

Read operation

The operation union and validation rules live in packages/contracts/src/index.ts and packages/core/src/plan.ts.