png-normalizer

1.0.5 • Public • Published

png-normalizer

Xcode在开启『Xcode Compress PNG Files』选项后,将会对 png 图片进行 pngcrush 压缩, 此格式的图片在非苹果软件内无法正常显示或编辑。

png-normalizer 无任何依赖!只在 node.js 10.15.0+以上版本进过测试。


After Xcode opens the "Xcode Compress PNG Files" option, it will pngcrush the png pictures, and pictures in this format cannot be displayed or edited normally in non-Apple software.

png-normalizer has no dependencies! Only tested on node.js 10.15.0+ and above.

Usage

let pngNormailzer = require('png-normalizer'),
    newBuf = pngNormailzer('./src.png');
 
if(newBuf){
    fs.writeFileSync('./out.png',newBuf);
};

Related

License

MIT

Package Sidebar

Install

npm i png-normalizer

Weekly Downloads

307

Version

1.0.5

License

MIT

Unpacked Size

103 kB

Total Files

5

Last publish

Collaborators

  • sbfkcel