node package manager


A small util that takes a stream of PNGs and splits it up


A few lines that takes a readable stream of PNGs, splits it, and emits "image" events

var myReadablePngStream = ...
var PngSplitter = require("png-splitter")
var pngSplitter = new PngSpliter(myReadablePngStream)
pngSplitter.on("image", function(image) {

This relies on stream.pipe, so make sure your stream implementation properly implements back-pressure and what not!