panimg-cli-0.2.1 is not a library.
panimg
The Swiss Army knife of image processing — built for humans and AI agents alike.
Features
- 31 commands for format conversion, resize, crop, rotate, color adjustment, filters, text, compositing, animation, and more
- Pipeline engine — chain multiple operations in a single read/write pass
- Batch processing — process multiple files with glob patterns and parallel execution
- AI-agent friendly — structured JSON output,
--dry-run,--schema, and--capabilitiesfor programmatic use - Fast & safe — built in Rust, SIMD-accelerated resize, zero unsafe code in the core pipeline (benchmarks)
Installation
Homebrew (macOS / Linux)
Cargo
Build from source
See Supported Formats for optional codec feature flags (AVIF, JPEG XL, SVG).
Quick Start
# Get image info
# Convert format
# Resize with fit mode
# Color adjustment
# Apply filter
# Add watermark text
# Multi-step pipeline
# Batch processing
See Command Reference for all 31 commands with full usage and examples.
Commands
| Command | Description |
|---|---|
info |
Show image metadata and properties |
convert |
Convert image between formats |
resize |
Resize with multiple fit modes |
crop |
Crop a rectangular region |
rotate |
Rotate by 90, 180, or 270 degrees |
flip |
Mirror horizontally or vertically |
auto-orient |
Auto-rotate based on EXIF orientation |
brightness |
Adjust image brightness |
contrast |
Adjust image contrast |
hue-rotate |
Rotate image hue |
saturate |
Adjust color saturation |
grayscale |
Convert to grayscale |
invert |
Invert (negate) colors |
sepia |
Apply sepia tone effect |
tint |
Tint with a color |
posterize |
Reduce color levels per channel |
blur |
Apply Gaussian blur |
sharpen |
Sharpen using unsharp mask |
edge-detect |
Detect edges (Laplacian kernel) |
emboss |
Apply emboss effect |
draw |
Draw shapes (rect, circle, line) |
text |
Draw text with embedded or custom fonts |
overlay |
Composite one image on another |
trim |
Auto-crop whitespace or similar-colored borders |
diff |
Compare two images and visualize differences |
frames |
Extract frames from animated GIF |
animate |
Assemble images into animated GIF |
gif-speed |
Change animation playback speed |
pipeline |
Run multiple operations in one pass |
batch |
Process multiple files with glob patterns |
See Command Reference for full usage and examples.
AI Agent Integration
panimg supports programmatic discovery and structured output for AI agents and automation:
See AI Integration Guide for exit codes, error format, and integration patterns.
Documentation
- Command Reference — full usage and examples for all 31 commands
- Supported Formats — format table and optional codec feature flags
- AI Integration Guide — structured output, schema, dry-run, exit codes
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
at your option.