https://github.com/thomas9911/imgopt
just a cli that optimzes images
https://github.com/thomas9911/imgopt
image image-processing jpeg png rust
Last synced: 8 months ago
JSON representation
just a cli that optimzes images
- Host: GitHub
- URL: https://github.com/thomas9911/imgopt
- Owner: thomas9911
- License: gpl-3.0
- Created: 2021-05-14T19:12:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T19:19:30.000Z (over 4 years ago)
- Last Synced: 2025-01-08T08:16:41.780Z (over 1 year ago)
- Topics: image, image-processing, jpeg, png, rust
- Language: Rust
- Homepage:
- Size: 57.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Imgopt
[](https://github.com/thomas9911/imgopt/actions/workflows/rust.yml)
just a binary that optimzes images
## Getting started
`git clone` and then:
```sh
cargo build --release
```
Then your binary can be found in target/release folder.
```sh
# prints the help
imgopt --help
# usage
imgopt [input] [output]
# examples
imgopt input.png output.png
imgopt input.jpeg output.jpeg
imgopt input.svg output.svg
imgopt input.png output.webp
imgopt input.jpeg output.webp
```
## formats
- jpeg: [mozjpeg](https://github.com/ImageOptim/mozjpeg-rust)
- png: pngquant ([libimagequant](https://github.com/ImageOptim/libimagequant))
- svg: [svgcleaner](https://github.com/RazrFalcon/svgcleaner)
- web: [webp](https://github.com/jaredforth/webp) (currently only outputs to webp, with quality set to 80)
## test images
jpg images from
png images from
svg images from