otf-pixels-ops
The image operations of Pixels
An Open Tech Foundation project
Each op declares its output shape and the input region it needs, and computes one tile at a time. Nothing runs when an op is chained, only when output is pulled.
[!TIP] Building an app or a server? Use
otf-pixelsinstead:image.resize(400, 300)there isResizehere, already wired in.
Use it
Ops apply to an otf-pixels-core Image:
use Arc;
use ;
use ;
API
| Op | What it does |
|---|---|
Resize, ResizeOptions, Fit, Filter |
Resample with seven filters and fit modes |
Crop, Flip, Flop, Rotate, Quarter |
Geometry: windows, mirrors, quarter turns |
Modulate |
Brightness, saturation and hue |
Convolve, Kernel |
Blur, sharpen and custom kernels |
Composite, Blend |
Overlay one image on another |
ExtractChannel, Flatten |
Pick a channel; flatten alpha onto a colour |
ConvertFormat |
Change pixel format (bit depth, channels) |
ToSrgb, Conversion |
ICC profile to sRGB |
Part of Pixels
| Crate | Role |
|---|---|
otf-pixels |
The chainable Image API most users want |
otf-pixels-core |
Graph, tiles, scheduler, codec and op traits |
otf-pixels-ops |
Image operations |
otf-pixels-compress |
DEFLATE, zlib, LZW, checksums |
otf-pixels-codec-* |
One crate per format |
License
Apache-2.0 — see LICENSE.