Jsong
Jsong is an encoder for the popular JSON-G format, written in Ruby. This implementation currently only supports PNG.
Installation
Add this line to your application's Gemfile:
gem 'jsong'
Or install it yourself with:
$ gem install jsong
Tested
Yes
Usage
require 'jsong'
# Get JSON-G encoded image text
jsong_text = Jsong.to_jsong('./sample_data/tomato.png', 'nice tomato')
# Turn that back into an image
Jsong.from_jsong(jsong_text, './sample_data/tomato.png')
Reference
Similar Projects
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/fwrs/jsong. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.