dominant-color
dominant-color copied to clipboard
Any way to use this in a frontend react app?
Or another way to find main color from an image for react usage
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