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

Can't Extract colour from my image #4

Open
devilznat opened this issue Jun 10, 2020 · 1 comment
Open

Can't Extract colour from my image #4

devilznat opened this issue Jun 10, 2020 · 1 comment

Comments

@devilznat
Copy link

devilznat commented Jun 10, 2020

Here's the code, it does not return any color palette but it works when using some image that I saved from google.

`
import { ColorExtractor } from 'react-color-extractor';

return (
<ColorExtractor getColors={colors => this.setState({ colors })}>
<img src='https://cms.dmpcdn.com/dev_sportschedule/2019/07/26/816e2b70-da46-4c2e-98f8-3e621dafc4a6_original.jpg' style={{ width: 700, height: 500 }} />

)
`
Could you help me find the solutions to this issue
and if you have any suggestion please tell me
Thank you in advance
N.

@hpachy
Copy link

hpachy commented Nov 9, 2020

same .....

I got a weird result... It's work with the link example : 'https://i.imgur.com/OCyjHNF.jpg', but when I tried open source img that's returned me undefined ...

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

2 participants