| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A powerful and flexible CLI tool to convert image files or directories of images into various formats using Sharp and a WebAssembly JPEG XL encoder.
Clone this repo and install dependencies:
npm installNo additional system packages are required for JPEG XL conversion.
npx tsx src/index.ts <source> --formats <formats...> [options]If --formats is omitted, the CLI converts to all supported output formats by default.
| Flag | Description |
|---|---|
| -f, --formats | Output format(s). Use multiple (e.g. jpg png). If omitted (or set to "all"), all supported output formats are used |
| -o, --out | Output directory. Defaults to same directory as source |
| --jpg-quality | JPEG quality (1-100). Default: 80 |
| --png-quality | PNG quality (1-100). Default: 100 |
| --webp-quality | WebP quality (1-100). Default: 80 |
| --avif-quality | AVIF quality (1-100). Default: 50 |
| --jpegxl-quality | JPEG XL quality (1-100). Default: 85 |
| -w, --width | Resize to width (pixels) |
| -h, --height | Resize to height (pixels) |
| -r, --rotate | Rotate image by angle (degrees) |
| --no-enlargement | Do not enlarge image if source is smaller than target dimensions |
| --grayscale | Convert to grayscale |
| --to-srgb | Convert to sRGB color space |
| --verbose | Enable detailed logging, including full error stacks/details on failures |
| -h, --help | Show usage information |
| Back | FazBrowse Home | New Git URL |