Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/feraxhp/cim
A simple CLI tool written in Rust for easily converting between various image formats.
https://github.com/feraxhp/cim
Last synced: about 2 months ago
JSON representation
A simple CLI tool written in Rust for easily converting between various image formats.
- Host: GitHub
- URL: https://github.com/feraxhp/cim
- Owner: feraxhp
- License: mit
- Created: 2024-09-02T15:18:58.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T19:07:44.000Z (about 2 months ago)
- Last Synced: 2024-11-10T20:19:28.172Z (about 2 months ago)
- Language: Rust
- Size: 247 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CIM (CONVERT IMAGE)
A simple CLI tool written in Rust for easily converting between various image formats.
You need to have [Rust](https://www.rust-lang.org/tools/install) installed on your system to build this project.
## supported formats
- Png,
- Jpeg,
- WebP,
- Gif,
- Pnm,
- Tiff,
- Tga,
- Dds,
- Bmp,
- Ico,
- Hdr,
- OpenExr,
- Farbfeld,
- Avif,
- Qoi,### Note
- svg is only supported as input format.
- it supports resizing.
- width and height are required.
- webp supports lossless and lossy compression.
- quality is required.## Usage
```bash
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, --version Print version
```## Build and Run
```bash# 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
- [ ] macOS brew- [ ] Add more image formats
- [ ] Add controls for image quality
- [ ] jpeg
- [ ] avif