Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pure ruby library for read/write access to PNG images.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
tasks
.gitignore
LICENSE
README.rdoc
Rakefile
chunky_png.gemspec

README.rdoc

Chunky PNG

This library can read and write PNG files. It is written in pure Ruby for maximum portability. It requires the standard Zlib library.

Usage

require 'chunky_png'

png = ChunkyPNG.load('filename.png')
puts png.chunks.inspect
puts png.pixel_matrix.inspect

# do something with the PNG file

File.open('out.png', 'w') { |f| png.write(f) }

(Note: this is subject to change while work is in progress)

About

The library is written by Willem van Bergen for Floorplanner.com, and released under the MIT license (see LICENSE). Please contact me for questions or remarks. Patches are greatly appreciated! :-)

Something went wrong with that request. Please try again.