Sha256: b5fee40732a55ef94c2562cec0944b3021e930e65334a8b334b660ff55baa96d

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 KB

Contents

# Morandi

Library of simple image manipulations - replicating the behaviour of
morandi-js.

## Installation

Install `liblcms2-utils` to provide the `jpgicc` command used by `Morandi::ProfiledPixbuf`

Add this line to your application's Gemfile:

    gem 'morandi'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install morandi

## Usage

````
   Morandi.process(in_file, settings, out_file)
````
- in_file is a string
- settings is a hash
- out_file is a string

Settings Key | Values | Description
-------------|--------|---------------
brighten     | Integer -20..20 | Change image brightness
gamma        | Float  | Gamma correct image
contrast     | Integer -20..20  | Change image contrast
sharpen      | Integer -5..5  | Sharpen / Blur (negative value)
redeye       | Array[[Integer,Integer],...]  | Apply redeye correction at point
angle        | Integer 0,90,180,270  | Rotate image
crop         | Array[Integer,Integer,Integer,Integer] | Crop image
fx           | String greyscale,sepia,bluetone | Apply colour filters
border-style  | String square,retro | Set border style
background-style  | String retro,black,white | Set border colour
quality       | String '1'..'100' | Set JPG compression value, defaults to 97%

## Contributing

1. Fork it ( http://github.com/livelink/morandi-rb/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
morandi-0.12.1 README.md
morandi-0.12.0 README.md