Sha256: e07ce701c973e2a29447affc777893af93e86afd8c9ca93c55f96d6d3e77cfde

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# PSDNative

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
* RLE decoding

## 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

1 entries across 1 versions & 1 rubygems

Version Path
psd_native-0.2.0 README.md