Vibrant-Colors/node-vibrant

Pallete is much different from the source image

guloic opened this issue · 1 comments

Issue : Palette colors don't match source image
Expected : Palette colors should match source image
Actual : Palette colors are different from source image

Steps to reproduce
I used this source image to generate a palette.
Source Image

And I got this palette -

{
  "Vibrant": {
    "rgb": [
      132,
      200,
      68
    ],
    "population": 2
  },
  "DarkVibrant": {
    "rgb": [
      10,
      142,
      70
    ],
    "population": 65
  },
  "LightVibrant": {
    "rgb": [
      166,
      230,
      118
    ],
    "population": 12
  },
  "Muted": {
    "rgb": [
      138,
      168,
      104
    ],
    "population": 67
  },
  "DarkMuted": {
    "rgb": [
      75,
      82,
      50
    ],
    "population": 230
  },
  "LightMuted": {
    "rgb": [
      204,
      212,
      164
    ],
    "population": 1
  }
}

The palette doesn't change irrespective of quality value or colorCount value. And if you see the color with highest population color ("DarkMuted"), the color is not even part of the image.

How to tweak this behaviour? I need more accurate palette.