cim feraxhp
Use this command to install cim:
winget install --id=feraxhp.cim -e
A simple CLI tool written in Rust for easily converting between various image formats. (SVG to PNG) (PNG to JPEG) (JPEG to png) (SVG to PNG custom size)
README
CIM (CONVERT IMAGE)
A simple CLI tool written in Rust for easily converting between various image formats.
Supported output formats
Png | Jpeg |
---|---|
WebP | Gif |
Pnm | Tiff |
Tga | Dds |
Bmp | Ico |
Hdr | OpenExr |
Farbfeld | Avif |
Qoi |
Supported input formats
- All output formats
- SVG
> [!Note]
> svg
is only supported as input format.
> And supports resizing.
> - width and height are required.
> [!Note]
> webp
supports lossless and lossy compression.
> - quality is required.
Usage
cim [format] [options]
Arguments:
The desire file Format
Input file/directory path
[output] Output file/directory path *(optional)
Options:
-w, --width Width of the output image (only for SVG to image) [default: 0]
-h, --height Height of the output image (only for SVG to image) [default: 0]
-q, --quality Quality of the output image (only for image to WebP) [default: 100]
--help Prints help information
-v, --vnumber Prints the version number
-V, --version Print version
Build and Run
# clone the repository
git clone https://github.com/feraxhp/cim.git
cd cim
# build the project
cargo build --release
# if you want to install it on your system
cargo install --path .
to do
-
Create distribution packages
- deb
- rpm
- pacman
- Windows installer
- Windows exe
- macOS brew
-
Add more image formats
-
Add controls for image quality
- jpeg
- avif