Sha256: a46f580973bb6de346ec836ece9edbc277c8c208463df4f3b416b8261db83481

Contents?: true

Size: 934 Bytes

Versions: 5

Compression:

Stored size: 934 Bytes

Contents

[![Build Status](https://secure.travis-ci.org/masarakki/jpeg.png)](http://travis-ci.org/masarakki/jpeg)
[![Dependency Status](https://gemnasium.com/masarakki/jpeg.png)](http://gemnasium.com/masarakki/jpeg)

# Jpeg

A libjpeg wrapper for ruby

## Installation

Add this line to your application's Gemfile:

    gem 'jpeg'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jpeg

## Usage

- get size
- get color_info

```ruby
jpeg = Jpeg.open('path/to/file')
jpeg.size # => [1920, 1080]
jpeg.width # => 1920
jpeg.height # => 1080
jpeg.color_info # => :rgb or :gray
jpeg.rgb? # => true
jpeg.gray? # => false
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/jpeg/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 a new Pull Request

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jpeg-0.7.0 README.md
jpeg-0.6.0 README.md
jpeg-0.5.1 README.md
jpeg-0.5.0 README.md
jpeg-0.4.0 README.md