PalletePNG

Build Status

PalletePNG is a pure-ruby library that makes a pallete-based PNG transparency.

Installation

Add this line to your application's Gemfile:

gem 'pallete_png'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pallete_png

Usage

require 'pallete_png'

image_data = File.binread('/path/to/pallete-based-w-transparency.png')

PalletePNG.to_transparency(image_data) # => The converted image data

Supported versions

Ruby 2.2, 2.3

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hidakatsuya/transparency_png.

License

© 2016 Katsuya HIDAKA. See MIT-LICENSE for further details.