jariz / vibrant.js

Extract prominent colors from an image. JS port of Android's Palette.

Home Page:http://jariz.github.io/vibrant.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

canvas added in the body

amirping opened this issue · comments

I'am using vibrant.js with angular 4 , and exprience an issues that the canvas didn't removed from the body
image
and i call it like that
`

let v = new Vibrant(changes.toPlayRadio.currentValue.pic);
v.getPalette((err, palette) => {
  var rgb = palette.Vibrant.getRgb()
  this.radioBackground =
  {
    'background' : 'rgb('+rgb[0]+','+rgb[1]+','+rgb[2]+');'
  }
});

`

@amirping

I also got this issue. Did you resolve it? :/

@jariz Any idea?
When I switch pages the canvas doesn't get removed

commented
  1. If the canvas doesn't get cleaned up, it's likely because vibrant crashed.
  2. You're ignoring the error in your code example.

Actually I found the solution I think:
Vibrant-Colors/node-vibrant#46

Sadly he/she isn't maintaining the package anymore and therefore this PR won't be merged anytime soon.

Hi, developer of node-vibrant here.
I'm back actively maintaining node-vibrant again. @jariz and I decided to deprecate vibrant.js.
This issue is fixed in node-vibrant. Please try it out. :)