Skip to content
Native mixin to speed up ChunkyPNG.
C Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
ext/oily_png
lib
spec
tasks
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
oily_png.gemspec

README.rdoc

OilyPNG

OilyPNG 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 PNGs, making that operation much faster for PNG images that apply filtering. An alternative implementation for encoding is planned.

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

  1. First install the gem and make it available to your project.

  2. Use require “oily_png” instead of require “chunky_png”

  3. 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.

About

License: MIT (see LICENSE)

This C module is written by Willem van Bergen with help from Dirkjan Bussink.

Something went wrong with that request. Please try again.