Skip to content

ynakajima/png2psd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

convert PNG file to PSD file.

Resources

License

Stars

Watchers

Forks

Packages

No packages published