arrufat/zignal
zero-dependency image processing library
What it solves
Zignal removes the need to juggle multiple external libraries when building an image processing pipeline. Instead of pulling in separate tools for reading images, applying filters, detecting features, or doing math, you get one self-contained package that covers those building blocks with zero dependencies.
How it works
Zignal is written in Zig and provides pure-Zig codecs for PNG, JPEG, BMP, and GIF, along with geometric transforms, filters, color space conversions, enhancement, and drawing on an antialiased canvas with bitmap and vector fonts. It also includes vision features like feature detection and matching, edge detection, Hough transform, QR codes, style transfer, and quality metrics. For math, it offers matrices, decompositions, geometry, statistics, PCA, global optimization, and clustering. Heavy operations run on a thread pool via std.Io and produce byte-identical results whether run serially or in parallel. The library can be used natively in Zig, through Python bindings (Python 3.11+, no external dependencies), or compiled to WASM for the web. A command-line interface is also included for displaying, inspecting, resizing, blurring, edge detection, tiling, style transfer, QR encoding/decoding, visual diffs, and quality metrics, with the ability to chain operations into pipelines.
Who it's for
Zignal is aimed at developers working on image processing or computer vision tasks who want a single, dependency-free library. It suits those using Zig directly, Python developers who prefer a lightweight library without external dependencies, and developers targeting web assembly for browser-based interactive demos. It also appeals to those who want a CLI tool for quick image manipulation and inspection.
Highlights
- Zero-dependency design: no external libraries needed for Python or Zig.
- Pure-Zig implementation of common image formats (PNG, JPEG, BMP, GIF).
- Covers the full pipeline: images, vision, math, and parallelism.
- Parallel execution with deterministic results (byte-identical to serial runs).
- Multiple platform support: native Zig, Python bindings, and WASM for the web.
- Includes a command-line interface for common image operations and pipelining.
Related
- Project
- Project
- Project
- Project