‚̧npm's personal messenger
    Have ideas to improve npm?Join in the discussion! ¬Ľ

    @gassepouille/image-colors

    1.0.0¬†‚Äʬ†Public¬†‚Äʬ†Published

    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

    Install

    npm i @gassepouille/image-colors

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    63.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar