Skip to content

jakubknejzlik/cgbi-to-png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published