png2psd
v0.9.4
Published
convert PNG file to PSD file.
Downloads
35
Readme
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 path
var pngFilePath = 'source.png';
var psdFilePath = 'export.psd';
// convert
png2psd(pngFilePath, function(psdFileBuffer) {
// save psd file
fs.writeFile(psdFilePath, psdFileBuffer, function(err) {
if (err) throw err;
console.log('save psd file.');
});
});