#image #optimal #libvips #similarity #pkg-config #find

bin+lib optimal-image

Find optimal compression level for images based on DSSIM similarity

2 releases

Uses old Rust 2015

0.3.1 Dec 18, 2018
0.3.0 Dec 17, 2018

MIT and AGPL-3.0

2.5MB
758 lines

optimal-image

Build Status

Development

Dependencies

This project depends on the following,

On Mac, install them using,

brew install pkg-config libvips

On Ubuntu / Alpine, install them using,

./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
cargo run

Usage

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

Dependencies

~15MB
~312K SLoC