pngjs/lib/png-sync.js
Eugene Kulabuhov f28d2a9e02 Added support for encoding 8-bit grayscale images (colorType = 0 and 4) (#76)
* Added support for encoding 8-bit grayscale images (colorType = 4)

* Fixed unit tests, updated README

* [README.md] Added Browserify and TOC
2017-04-30 11:45:27 +02:00

16 lines
254 B
JavaScript

'use strict';
var parse = require('./parser-sync');
var pack = require('./packer-sync');
exports.read = function(buffer, options) {
return parse(buffer, options || {});
};
exports.write = function(png, options) {
return pack(png, options);
};