Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 440 Bytes

README.md

File metadata and controls

38 lines (21 loc) · 440 Bytes

psd2png

Image convertor, PSD to PNG, for node.js

usage

$ npm install psd2png --save
var psd2png = require('psd2png')
  , fs = require('fs')
;

fs.readFile('./psd.psd', function (err, buffer) {
    if (!!err) throw err;

    var pngbuffer = psd2png(buffer);

    fs.writeFileSync('./image.png', pngbuffer);

});

test

node bin/psd2png.js ./test/test.psd

thanks

@leo94rug