dominant-color icon indicating copy to clipboard operation
dominant-color copied to clipboard

Any way to use this in a frontend react app?

Open Aditya94A opened this issue 4 years ago • 2 comments

Aditya94A avatar Jun 04 '20 10:06 Aditya94A

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

asgaraliyev avatar Oct 11 '20 19:10 asgaraliyev

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

ajmas avatar Jun 30 '21 11:06 ajmas