/imageToFlag

Use ImageMagic to create a flag with the dominant colors from an image URL

Primary LanguageJavaScript

imageToFlag

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

Will convert this image: image

To this flag: flag