CLI
CLI Overview
Generate one result or one manifest from the shell using sharp or wasm backend.
When to use
Section titled “When to use”Use the CLI when you want JSON output without writing a custom script.
Example
Section titled “Example”blurkit encode ./public/hero.jpg --prettyInputs / Options / Behavior
Section titled “Inputs / Options / Behavior”Command surface:
blurkit encode <input>Common flags:
--algorithm blurhash|thumbhash--size <number>--width <number>--height <number>--format png|jpeg--glob <pattern>--out <file>--base-path <path>--concurrency <number>--backend sharp|wasm--pretty
Behavior:
- local file input returns one
BlurResultJSON object - local directory input +
--globreturns oneBlurManifestJSON object - remote URL input behaves as single-image mode
- backend defaults to
sharp; use--backend wasmto force wasm path
Limits / Caveats
Section titled “Limits / Caveats”--backend sharprequiressharp.--backend wasmsupports PNG/JPEG/WebP decode.--backend wasmrequiresblurkit-wasm-codecsinstalled.--globis valid only for local directory input.