Sha256: 2a62f563e37650fbf061b41609841a46fa340a8d13ecc57a3beb0409b76d8ab8

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

# PSDNative

[![Travis CI](https://travis-ci.org/layervault/psd_native.png)](https://travis-ci.org/layervault/psd_native)

A gem that includes multiple mixins that speed up [PSD.rb](https://github.com/layervault/psd.rb) by delegating certain parts of the library to native C code. This library allows for PSD.rb to function as a pure Ruby library, while allowing for optional native code speed improvements. It overwrites specific methods within PSD.rb transparently, so you can use PSD.rb like normal.

Currently, PSDNative replaces these sections of PSD.rb with native code:

* RGB processing
* CMYK processing
* Greyscale processing
* RLE decoding
* Some color conversions

## Installation

Add this line to your application's Gemfile:

    gem 'psd_native'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install psd_native

## Usage

Simply require `psd_native` instead of `psd`, and you're good to go.

``` ruby
require 'psd_native'

psd = PSD.new("path/to/file.psd")
psd.parse!
```

## Contributing

1. Fork it
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
psd_native-0.4.0 README.md
psd_native-0.3.1 README.md