mirror of
https://github.com/danbulant/pngjs
synced 2026-05-31 21:20:14 +00:00
* Added support for encoding 8-bit grayscale images (colorType = 4) * Fixed unit tests, updated README * [README.md] Added Browserify and TOC
16 lines
254 B
JavaScript
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);
|
|
};
|