Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

mruby-jpeg

Note: This is a work in progress, only supports reads right now

Support for reading JPEGs in mruby using libjpeg.

Installation

In the mruby directory add the following to your build config:

MRuby::Build.new do |conf|

  conf.gem :git => 'git://github.com/carsonmcdonald/mruby-jpeg.git', :branch => 'master'

end

or

In the mruby directory:

mkdir mrbgems
cd mrbgems
git clone git://github.com/carsonmcdonald/mruby-jpeg.git

Then in your build config add:

MRuby::Build.new do |conf|
  
  conf.gem 'mrbgems/mruby-jpeg'

end

Example Use

jpeg = JPEG.read("test.jpg")
# Raw jpeg data found in jpeg.data

Options

You can pass the following options when reading a JPEG file:

  • :force_grayscale - Force the image to be read in grayscale

License

MIT - See LICENSE

About

JPEG support for mruby using libjpeg

Resources

License

Releases

No releases published
You can’t perform that action at this time.