nils-image-processing-0.4.9 is not a library.
image-processing
Overview
image-processing provides a modern SVG-first flow:
svg-validate --in <svg> --out <svg>convert --from-svg <path> --to png|webp|svg --out <file>
generate is removed.
Usage
Usage:
image-processing <subcommand> [flags]
Subcommands:
convert | svg-validate
Help:
image-processing --help
Commands
svg-validate: Validate and sanitize one SVG input into one SVG output.convert: Render trusted SVG source intopng,webp, orsvgoutput.
Common flags
- Input:
svg-validate:--in <path>(exactly one)convert:--from-svg <path>
- Output:
--out <file> - Output controls:
--overwrite,--dry-run,--json,--report - Render sizing for raster output:
--width,--height
convert --from-svg contract (v1)
- Required:
--from-svg,--to png|webp|svg,--out <file>. - Forbidden:
--in. --outextension must match--to.- Optional:
--widthand--heightforpng/webpsizing. --to svgdoes not support--width/--height.
svg-validate contract
- Required: exactly one
--in <svg>and--out <svg>. - Forbidden:
--from-svg,--to,--width,--height. - Output is deterministic for identical input.
Examples
Exit codes
0: Success with no item errors.1: Runtime failure or one-or-more items failed.2: Usage/validation error.
Dependencies
convert --from-svgandsvg-validate: no external binary dependency (Rust backend).