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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request