Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 574 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 574 Bytes

cgbi-to-png

Build Status

Revert Xcode PNG compression (CgBI) in plain javascript.

Example

You can revert stream...

var cgbiToPng = require('cgbi-to-png');

var cgbiFileStream = fs.createReadStream(...);

cgbiToPng(cgbiFileStream,function(err,pngStream){
    // handle reverted pngStream (eg. pngStream.pipe(...))
});

...or buffer directly.

var cgbiBuffer = fs.readFileSync(...);
var pngBuffer = cgbiToPng.revert(cgbiBuffer);