@axtraz/transpic-cli
v0.6.0
Published
A fast image manipulation CLI tool
Maintainers
Readme
transpic-cli
A fast image manipulation CLI tool.
Installation
npm install -g @axtraz/transpic-cliUsage
transpic --path <image> [options]At least one action flag is required.
Options
| Flag | Type | Description |
|------|------|-------------|
| --path, -p | string | Path to the input image (required) |
| --format | string | Convert output format (png, jpg, webp, …) |
| --blur | float | Apply blur with given intensity |
| --grayscale | boolean | Convert image to grayscale |
| --invert | boolean | Invert image colors |
| --resize | WxH | Resize image (e.g. 800x600) |
| --rotate | 90\|180\|270 | Rotate image by given degrees |
Examples
# Convert to WebP
transpic --path image.png --format webp
# Resize and convert
transpic --path photo.jpg --resize 1280x720 --format webp
# Grayscale + blur
transpic --path image.png --grayscale --blur 2
# Rotate and invert
transpic --path image.jpg --rotate 90 --invert