cgbi-to-png
v1.0.7
Published
Revert Xcode PNG compression (CgBI) in plain javascript.
Downloads
8,704
Maintainers
Readme
cgbi-to-png
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);