TypeError: PSD.open is not a function
hkshakib opened this issue · comments
MD Humayun Kibria Shakib commented
let PSD = require('psd');
var file = process.argv[2] || './examples/images/example.psd';
var start = new Date();
PSD.open(file).then(function (psd) {
return psd.image.saveAsPng('./output.png');
}).then(function () {
console.log("Finished in " + ((new Date()) - start) + "ms");
});;
When I run this code, it shows the following error
Kunle Oshiyoye commented
Hi @hkshakib,
Which version are of psd
are you using?
Kunle Oshiyoye commented
Got a PR open that should resolve this.
PR: #244
Kunle Oshiyoye commented
This should be fixed in the latest 3.4.0
release.