项目作者: optimal-image

项目描述 :
Image processing crates to provide optimal image
高级语言: Rust
项目地址: git://github.com/optimal-image/optimal-image.git
创建时间: 2018-07-27T15:57:45Z
项目社区:https://github.com/optimal-image/optimal-image

开源协议:

下载


optimal-image

Build Status

Development

Dependencies

This project depends on the following,

On Mac, install them using,

  1. brew install pkg-config libvips

On Ubuntu / Alpine, install them using,

  1. ./install-vips.sh

Build

  • For the first time you want to run, you can run the make init to intialize the githooks
  • Once you have cargo available locally, build the package as
  1. cargo run

Usage

  1. Optimal Image 0.2.0
  2. Determine optimal compression settings for an image
  3. USAGE:
  4. optimal_image <original> --range <MIN> <MAX> --threshold <threshold> [SUBCOMMAND]
  5. FLAGS:
  6. -h, --help Prints help information
  7. -V, --version Prints version information
  8. OPTIONS:
  9. -r, --range <MIN> <MAX> Compression range to search (e.g. --range min max)
  10. -t, --threshold <threshold> threshold difference from original (lower is better)
  11. ARGS:
  12. <original>
  13. SUBCOMMANDS:
  14. diff Calculate DSSIM difference between 2 images
  15. help Prints this message or the help of the given subcommand(s)