shime / dominant-color

Gets dominant color of an image.
MIT License
63 stars 0 forks source link

Any way to use this in a frontend react app? #7

Open Aditya94A opened 4 years ago

asgaraliyev commented 4 years ago

Or another way to find main color from an image for react usage

ajmas commented 3 years ago

The issue with using this as a React app is that it depends on an external executable (Image Magick), so is unsuitable for running in a browser. You'll either need to have this run on a server or look at color-thief, which can run purely in the browser, since it leverages canvas