Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spejss/Image-Processing-CLI-in-Rust
CLI for image processing with histograms, binary treshold and other functions
https://github.com/spejss/Image-Processing-CLI-in-Rust
binary cli contrast grayscale histogram histograms huerotate image image-manipulation image-processing rust treshold
Last synced: about 1 month ago
JSON representation
CLI for image processing with histograms, binary treshold and other functions
- Host: GitHub
- URL: https://github.com/spejss/Image-Processing-CLI-in-Rust
- Owner: mikigraf
- License: mit
- Created: 2017-08-14T11:04:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-04T22:48:17.000Z (over 5 years ago)
- Last Synced: 2024-08-05T19:25:08.417Z (5 months ago)
- Topics: binary, cli, contrast, grayscale, histogram, histograms, huerotate, image, image-manipulation, image-processing, rust, treshold
- Language: Rust
- Homepage:
- Size: 5.18 MB
- Stars: 26
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust - spejss/Image-Processing-CLI-in-Rust - ci.org/spejss/Image-Processing-CLI-in-Rust.svg?branch=master)](https://travis-ci.org/spejss/Image-Processing-CLI-in-Rust) (Applications / Graphics)
- awesome-rust-zh - spejss/Image-Processing-CLI-in-Rust - 用于处理图像的 CLI,生成直方图。[![Build Status](https://api.travis-ci.org/spejss/Image-Processing-CLI-in-Rust.svg?branch=master)](https://travis-ci.org/spejss/Image-Processing-CLI-in-Rust) (应用 / 图像)
- awesome-rust-cn - spejss/Image-Processing-CLI-in-Rust - ci.org/spejss/Image-Processing-CLI-in-Rust.svg?branch=master)](https://travis-ci.org/spejss/Image-Processing-CLI-in-Rust) (应用 / Graphics)
- awesome-rust - spejss/Image-Processing-CLI-in-Rust - ci.org/spejss/Image-Processing-CLI-in-Rust.svg?branch=master)](https://travis-ci.org/spejss/Image-Processing-CLI-in-Rust) (应用 Applications / 图像处理 Graphics)
README
# Image-Processing-CLI-in-Rust [![Build Status](https://travis-ci.org/spejss/Image-Processing-CLI-in-Rust.svg?branch=master)](https://travis-ci.org/spejss/Image-Processing-CLI-in-Rust)
CLI for processing images in Rust. Some implementation is custom and for some functionality it uses 3rd party libraries.This project uses following libraries:
https://github.com/PistonDevelopers/image
Processed images are being stored in the same folder as the source image using the name of the source image with an appended suffix.
Source: hotelroom.jpg
Copy: hotelroomCopy.jpg
Blur: hotelroomBlur.jpg
Generated histograms are also stored this way.
## Implemented functions
* ***Binary treshold*** -o binaryTreshold -v 200
* ***(NAIVE) Histogram for colors (RGB)*** -o histogram
* ***(NAIVE) Histogram for grayscale images*** -o histogramGrayscale
* ***Average color*** -o average
* ***Copy:*** -o copy
* ***Thumbnail:*** -o thumbnail -v 96
* ***blur:*** -o blur -v 4.0
* ***brighten:*** -o brighten -v 10
* ***huerotate:*** -o huerotate -v 10
* ***contrast:*** -o contrast -v 20.0
* ***grayscale***: -o grayscale
* ***invert*** -o invert## Examples
### Copy image
```
ipcli -o copy --image "D:\Image\hotelroom.jpg"
```### Create a thumbnail
```
ipcli -o thumbnail -v 96 --image "D:\Image\hotelroom.jpg"
```### Generate a historgram of colors
```
ipcli -o histogram -i "D:\Image\hotelroom.jpg"
``````
IPCLI 0.1
Mikolaj Wawrzyniak
Basic CLI for image processingUSAGE:
ipcli [OPTIONS] --image --operationFLAGS:
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
-i, --image Opens specified image file and uses it for transformations.
-o, --operation Specifies operation to be done on the image
-v, --value Value for the transformation. To see what values are needed, check the
documentation.
```