Skip to content

Commit

Permalink
Reduce bundle size by remove unused quantizers
Browse files Browse the repository at this point in the history
  • Loading branch information
akfish committed Mar 3, 2016
1 parent bf070b3 commit 8fa3874
Show file tree
Hide file tree
Showing 8 changed files with 2,321 additions and 3,513 deletions.
10 changes: 2 additions & 8 deletions README.md
Expand Up @@ -93,7 +93,7 @@ Field | Default | Description
`maxDimension` | `undefined` | The max size of the image's longer side used in downsampling stage. This field will override `quality`.
`filters` | `[]` | An array of filters
`Image` | `Image.Node` or `Image.Browser` | An `Image` implementation class
`Quantizer` | `Vibrant.Quantizer.NoCopy` | A `Quantizer` implementation class
`Quantizer` | `Vibrant.Quantizer.MMCQ` | A `Quantizer` implementation class

#### `getPalette(cb)`

Expand Down Expand Up @@ -232,13 +232,7 @@ Keeps the original `vibrant.js`'s filtering behavior as reference.
Base class of a `Quantizer`.

#### `Quantizer.MMCQ`
Default quantizer. ~4x faster than baseline quantizer. (Rewritten version of `NoCopy`)

#### `Quantizer.NoCopy`
Optimized quantizer. ~4x faster than baseline quantizer.

#### `Quantizer.Baseline`
Original `vibrant.js` quantizer. Used for tests and benchmarks only. It does not support downsampling nor filters.
Default quantizer. ~4x faster than baseline quantizer.

### `Vibrant.Generator`
Base class for `Generator`.
Expand Down

0 comments on commit 8fa3874

Please sign in to comment.