png2psd
convert PNG file to PSD file.
cli
install
npm install -g png2psd
usage
png2psd source.png export.psd
node module
install
npm install png2psd
usage
var png2psd = require('png2psd'), fs = require('fs'); // file pathvar pngFilePath = 'source.png';var psdFilePath = 'export.psd'; // convertpng2psd(pngFilePath, function(psdFileBuffer) { // save psd file fs.writeFile(psdFilePath, psdFileBuffer, function(err) { if (err) throw err; console.log('save psd file.'); });});