LittleCMS-Ruby

Simple Ruby wrapper for LittleCMS and jpegicc

Installation

Add this line to your application's Gemfile:

gem 'littlecms'

And then execute:

$ bundle

Or install it yourself as:

$ gem install littlecms

Requirements

LittleCMS-Ruby requires the command jpegicc to be installed.

On Ubuntu/Debian:

$ apt-get install liblcms-utils

On Mac/Homebrew:

$ brew install little-cms

Other platforms: http://www.littlecms.com/download.html

Usage

require 'littlecms'
LittleCMS.jpegicc 'input.jpg'

# specify output
LittleCMS.jpegicc 'input.jpg', :output_path => 'output.jpg'

# add any option you want as described here: http://linux.die.net/man/1/jpegicc
LittleCMS.jpegicc 'input.jpg', :q => 80, :b => true, :c => 1

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request