Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pallete is much different from the source image #126

Open
guloic opened this issue May 26, 2021 · 0 comments
Open

Pallete is much different from the source image #126

guloic opened this issue May 26, 2021 · 0 comments

Comments

@guloic
Copy link

guloic commented May 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant