/Vibrant

A Ruby port of Vibrant.js using Imagemagick. Extracts prominent colors from a provided image.

Primary LanguageRubyMIT LicenseMIT

Vibrant

A Ruby port of Vibrant.js.

Extracts prominent colors from a provided image.

Prerequisites

  • Imagemagick
  • Ruby >= 2.0.0

Installation

gem install vibrant

Usage

require 'vibrant'

# Open up an image file

vibrant = Vibrant.new(File.open('someimage.jpg', 'r'))

vibrant.swatches # returns 'swatches' for the different prominent colors

License

MIT - See LICENSE.txt.