<img src=“https://travis-ci.org/wvanbergen/oily_png.svg?branch=master” alt=“Build Status” />¶ ↑
OilyPNGOilyPNG is a Ruby C extension to speed up the pure Ruby ChunkyPNG library. It is a standalone module, so it does not require LibPNG, ImageMagick or any other library. Currently it has an alternative implementation of decoding and encoding PNGs, making these operations much faster, especially for PNG images that apply filtering.
Performance comparison: gist.github.com/611255
Warning: this is my first C code in years. It may blow up your PC after leaking memory all over the place, killing a kitten in the process. You have been warned.
¶ ↑
Usage-
First install the gem and make it available to your project.
-
Use require “oily_png” instead of require “chunky_png”
-
Presto! Now use ChunkyPNG as you normally would and get an instant speedup.
See github.com/wvanbergen/chunky_png/wiki for more information on how to use the ChunkyPNG API.
¶ ↑
AboutLicense: MIT (see LICENSE)
This C module is written by Willem van Bergen with help from Dirkjan Bussink.