#parser #image-processing #command-line #cross-platform #image #arguments-parser #quickly

app imgutils

Cross-platform CLI for quickly parsing & manipulating images

3 releases

0.1.3 May 5, 2024
0.1.2 Mar 20, 2024
0.1.1 Mar 20, 2024
0.1.0 Mar 20, 2024

#115 in Images

MIT/Apache

36KB
745 lines

imgutils 🌸

Cross-platform command-line utility for quickly parsing & manipulating images powered by amazing crates like image-rs 💜

Installation

Cargo

The simplest way to install imgutils is via Cargo. Assuming you already have Cargo installed locally you can simply run following:

cargo install imgutils

Prebuilt binaries

Pre-built binaries are made available on the repository's Releases for as many platforms as possible. Simply grab the right release asset for your system and place it somewhere in your $PATH.

Other package manegrs

imgutils is not available from any other package manager at this time. 3rd party packaging is welcomed.

Usage

All commands that perform any permanent modifications to images are kept under the modify subcommand to provide a clear distinction. All other commands are either kept at the top-level or nested into subcommands when deemed appropriate.

Usage: imgutils <COMMAND>

Commands:
  details     Print detailed information about an image in a pretty format
  dimensions  Print an image's dimensions formatted as 'WidthxHeight'
  modify      A collection of commands that perform modifications to images
  help        Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help (see more with '--help')
  -V, --version  Print version

Features

Actions

  • Blur
  • Brighten
  • Constrast
  • Crop
  • Flip
  • Grayscale
  • Invert
  • Hue
  • Format
  • Resize
  • Rotate
  • Get Image Dimensions

Codecs

Sourced from the image-rs supported formats documentation.

  • AVIF
  • BMP
  • Farbfeld
  • GIF
  • HDR
  • ICO
  • JPEG
  • EXR
  • PNG
  • PNM
  • QOI
  • TGA
  • TIFF
  • WebP

License

This crate is dual-licensed under both the MIT License and Apache 2.0 license.

Dependencies

~9–17MB
~234K SLoC