forked from leeoniya/RgbQuant.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from haroldo-ok/command-line Implemented command line interface; now, the application can be called either from command line, from browser or as a node.js module. Help message: ``` rgbquant-sms convert <src> <dest> Converts an image into a png with the tile count reduced Positionals: src The source image, the one that will be converted [string] [required] dest The destination image that will be generated [string] [required] Options: --version Show version number [boolean] --help Show help [boolean] --colors Desired palette size [default: 16] --max-tiles Maximum number of tiles to use [default: 256] --min-hue-cols Number of colors per hue group to evaluate regardless of counts, to retain low-count hues [default: 512] --dithKern Dithering kernel name; can one of these: FloydSteinberg, Stucki, Atkinson, Jarvis, Burkes, Sierra, TwoSierra, SierraLite, FalseFloydSteinberg, Ordered2, Ordered2x1, Ordered3, Ordered4 or Ordered8 [string] [default: ""] --dith-serp Enable serpentine pattern dithering [boolean] [default: false] --weigh-popularity Weigh by popularity when reducing tile count [boolean] [default: true] --weigh-entropy Weigh by entropy when reducing tile count [boolean] [default: false] ```
- Loading branch information
Showing
5 changed files
with
349 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/node_modules | ||
/*.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.