Skip to content

Recipes

Copy page

Each recipe begins with a concrete image task and shows an actual input, generated outputs, complete code, and the current verification boundary. The four interfaces implement the same product intent without assuming identical defaults or encoded bytes.

Geometry and canvas

Compare fit, cover, crop positions, resize, crop, rotate, and flip. Resize · Geometry basics

Special formats

Generate a Deep Zoom pyramid with sharp and the vips CLI while keeping unsupported paths explicit. Deep Zoom

“Executed successfully” only means that the code completed on the recorded toolchain. Pixel equivalence, defaults, and encoded bytes depend on the comparison mode and differences documented on the page. See the version compatibility matrix for the baseline.