An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Imgopt

[![Rust](https://github.com/thomas9911/imgopt/actions/workflows/rust.yml/badge.svg?branch=main)](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