You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to use psd to replace imagemagick's identify() for psd file. Thank you for this excellent project!! I found it is much faster than imagemagick.identify().
However, when I tested it with some fake psd files, it seems the psd.js will be getting stuck.
Following please find how to reproduce the problem.
I am wondering if we can add some defensive codes to avoid export() getting stuck?
Thank you :)
'use strict';
const request = require('request');
const PSD = require('psd');
const Async = require('util-asyncflow');
var flow = new Async();
var fakefile = 'https://s3.amazonaws.com/tacolbiz/misc/car-photoshop-iff.iff';
flow.task(next=> {
let s = request(fakefile);
let buff = [];
s.on('data', buf=> buff.push(buf))
.on('end', _=> {
buff = Buffer.concat(buff);
next(null, buff);
})
.on('error', err=> next(err));
});
flow.wait(buff=> {
let psd = new PSD(buff);
psd.parse();
let tree = psd.tree();
console.log('will export() tree');
tree = tree.export(); // getting stuck here.
console.log('never see this');
});
flow.run(err=> console.error(err));
The text was updated successfully, but these errors were encountered:
Hi, I am trying to use psd to replace imagemagick's identify() for psd file. Thank you for this excellent project!! I found it is much faster than imagemagick.identify().
However, when I tested it with some fake psd files, it seems the psd.js will be getting stuck.
Following please find how to reproduce the problem.
I am wondering if we can add some defensive codes to avoid
export()
getting stuck?Thank you :)
The text was updated successfully, but these errors were encountered: