Encode/decode arbitrary data within the PNG file format.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install png-encode
Right now there are only 2 straightforward methods to use:
require 'png-encode' PNG.encode(infile, outfile) PNG.decode(infile, outfile)
These will be made more flexible in the future.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request