Skip to content

Releases: josip/node-colour-extractor

v1.0.1

11 May 14:14
Compare
Choose a tag to compare

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 of colour-extractor previously.
  • topColours (and topColors) take only one argument, path to the image.
  • topColours now returns a Promise, instead of taking a callback function.
  • Resolved promise no longer contains frequency at which each detected colour appears.
  • Added topColoursHex which returns colors as CSS hex code, compared to an RGB triplet returned by topColours.
  • rgb2hex and hex2rgb utility functions have been removed.