png2psd

0.9.4 • Public • Published

png2psd

convert PNG file to PSD file.

Build Status Code Climate npm version npm downloads dependencies license MIT

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.');
  });
});

Readme

Keywords

Package Sidebar

Install

npm i png2psd

Weekly Downloads

2

Version

0.9.4

License

MIT

Last publish

Collaborators

  • ynakajima