Use ImageMagic to create a flag with the dominant colors from an image URL
Clone this repo, and install with npm i
Call with a command like so:
- node imgToFlag numberOfBars imageSourceURL
$ node imgToFlag.js 3 https://m.media-amazon.com/images/I/915UBGLz1GL._AC_SL1500_.jpg