Releases: josip/node-colour-extractor
Releases · josip/node-colour-extractor
v1.0.1
This version is a complete rewrite of the library, dropping GraphicsMagick for native Rust-based color extraction algorithm, bringing visually improved results and significantly faster processing.
Breaking changes
- NPM package is now published as
@colour-extractor/colour-extractor, instead ofcolour-extractorpreviously. topColours(andtopColors) take only one argument,pathto the image.topColoursnow returns aPromise, instead of taking a callback function.- Resolved promise no longer contains frequency at which each detected colour appears.
- Added
topColoursHexwhich returns colors as CSS hex code, compared to an RGB triplet returned bytopColours. rgb2hexandhex2rgbutility functions have been removed.