Summary

Rusimg is a versatile command-line tool written in Rust for image processing. It allows users to perform various image manipulations directly from the terminal, making it ideal for automating image processing tasks or integrating into scripts.

Key features include image format conversion (JPEG, PNG, WebP, BMP), quality setting, resizing, cropping, and grayscale conversion. These features can be accessed through simple and intuitive command-line options.

Rusimg also offers a library crate (librusimg), enabling developers to incorporate its image processing capabilities into their own Rust projects. This provides a flexible and efficient way to handle image processing tasks within Rust applications.

Whether you need to quickly convert a batch of images, optimize images for web use, or integrate image processing into a larger workflow, Rusimg provides a powerful and convenient solution.

Features

Rusimg offers a suite of some image processing features, all accessible via simple command-line options. These features allow you to easily convert, resize, crop, and adjust the quality of your images. Whether you need to optimize images for the web, prepare them for print, or simply manipulate them for fun, Rusimg provides the tools you need. The table below outlines the key features and their corresponding command-line options:

Feature Description Command Line Option (Example)
Specify Input File/Directory Read images from the specified file or directory.
You can use wildcards to specify multiple files.
-i ./image/*.jpg
Specify Output File/Directory Specify the output file or directory for the processed images.
If not specified, the original file will be overwritten.
-o ./output/
Image Conversion Convert images to JPEG, PNG, WebP, and BMP formats. -c jpeg
Quality Setting (Compression) Set the quality of the converted image. -q 75
Image Resizing Resize images by a scaling factor. -r 50
Image Cropping (Trimming) Crop images. -t XxY+WxZ (e.g., 100x100+50x50)
Grayscale Conversion Convert images to grayscale. -g
Image Preview Preview images before processing. -v
How to get ?

To get started with Rusimg, you need to have Rust installed on your system. If you haven't installed Rust yet, you can do so by following the instructions on the official Rust website: Install Rust.

Then you can install Rusimg via cargo:

$ cargo install rusimg

This command will install the Rusimg binary crate. Once installed, you can use Rusimg from the command line to process images.

License

Rusimg is licensed under the MIT or Apache-2.0 license. You can choose either license to use, modify, and distribute the software. The full text of the licenses can be found in the MIT License and Apache-2.0 License.