What is the libvips ecosystem?
libvips is an image-processing library. The vips command invokes operations directly, while govips, sharp, and pyvips expose related capabilities to Go, Node.js, and Python. Elixir has two further layers: Vix calls libvips through NIFs, and Image offers a smaller set of functions on top of Vix. They share many underlying concepts, but their APIs, defaults, resource management, and error models are not identical.
A mental map
Section titled “A mental map”| Layer | Responsibility | Typical entry points |
|---|---|---|
| libvips | Loaders, operations, caching, and savers | C API, vips |
| Language binding | Maps capabilities into language conventions | govips, sharp, pyvips, Vix |
| Higher-level wrapper | Narrows the binding into a smaller call surface | Image |
| Application pipeline | Combines input, transforms, output, and observability | Services, queues, batch jobs |
A central libvips idea is demand-driven evaluation: a pipeline can describe operations first and compute the needed regions when output pixels are requested. This can reduce intermediate-image pressure, but it does not make every input, saver, or binding truly streaming.
Choosing an interface
Section titled “Choosing an interface”- Start with govips for an existing Go service that can manage native dependencies.
- Start with sharp for a Node.js service that benefits from a chainable pipeline.
- Start with pyvips for Python automation or scientific workflows.
- Start with the vips CLI when investigating an operation or preparing a minimal reproduction.
- Start with Image for an existing Elixir service. Vix is the layer underneath when you need a name closer to a libvips operation. The examples executed for this handbook stop at Image’s public functions.
Use choosing a binding to pick an interface, then install and verify. After the versions check out, run the 15-minute quickstart on one shared input.