1.0.0 • Published 5 years ago

@gassepouille/image-colors v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

#Image colors

Javascript module to get a list of the most used colors in an image

usage :

let imageColors = new ImageColors({
        removeMainBlack:false,
        removeMainWhite:false,
        maxColors : 5,
        trimSimilarColors: true,
        thresholdSimilarColors : 35,
});
let url = "./sample.jpg";
let colors = await imageColors.getColors(url);

npm install @gassepouille/image-colors