Skip to content
forked from exoticorn/pngeq

High quality PNG quantization tool

License

Notifications You must be signed in to change notification settings

skyeewers/pngeq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pngeq

pngeq is a simple command line image quantization tool to convert 24/32 bit PNG images to 8 bit PNGs based on the exoquant library.

Installation

Install rust (including cargo), then:

cargo install pngeq

Usage

USAGE:
    pngeq [OPTIONS] <NUM_COLORS> <INPUT> <OUTPUT>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --dither <ditherer>           Ditherer to use
                                      [values: none, ordered, fs, fs-checkered]
    -O, --opt <optimization level>    Palette optimization
                                      [values: 0, s1, s2, s3, c1, c2, c3]

ARGS:
    <NUM_COLORS>    target color count for output
    <INPUT>         path to input truecolor png (use "-" to read file from stdin)
    <OUTPUT>        path for output 8bit png (use "-" to output to stdout)

K-Means optimization levels: none ('0'), optimize for smoothness ('s1' - 's3'),
optimize for colors ('c1' - 'c3'). Defaults depend on NUM_COLORS: > 128 color:
's1', > 64 colors: 's2', >= 32 colors: 'c2', < 32 colors: 'c3'
Available ditherers: 'none', 'ordered', 'fs', 'fs-checkered'

About

High quality PNG quantization tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%