You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot load buffer as an image in browser
at BrowserImage../node_modules/node-vibrant/lib/image/browser.js.BrowserImage.load (browser.js:64)
at ColorExtractor._this.useDefaultImageClass (react-color-extractor.es.js:74)
at react-color-extractor.es.js:67
```
The text was updated successfully, but these errors were encountered:
Looking at that error message, it seems like you are passing an image array buffer to the src prop. To render this image and extract colors from it, you might wanna convert this buffer to output base64 image.
The code for this conversion could look something like this -
Looking at that error message, it seems like you are passing an image array buffer to the src prop. To render this image and extract colors from it, you might wanna convert this buffer to output base64 image.
The code for this conversion could look something like this -
I'm using image generated on the fly, and it doesn't work. Is there a solution ?
const logo = "http://www.edgebase.com/companies/amazon/logo?width=80&height=80"
<ColorExtractor src={logo} getColors={colors => console.log(colors)} onError={error => console.log(error)} />
The text was updated successfully, but these errors were encountered: