我不仅有这个问题:SSL_get_error
errSSLClosedAbort = -9806, /* connection closed via error */
我得到了控制台输出:
console.log(appPath + '/public/avatar/tmp_' + filename);
var path = appPath + '/public/avatar/tmp_' + filename;
try {
fs.accessSync(path, fs.F_OK);
// Do something
console.log('file exists!');
} catch (e) {
// It isn't accessible
console.log('file does NOT exist!');
}
console.log('trying...');
// crop/resize image
im.crop({
srcPath: path,
dstPath: 'test1.png',
width: 60,
height: 60
}, function(err, stdout, stderr){
console.log('here');
if (err) {
console.log('trololololol '+err);
reject(err);
}
console.log('resized to fit within 60x60px');
resolve();
});
答案 0 :(得分:5)
ENOENT
表示无法找到identify
。确保您已安装ImageMagick并将其安装在$PATH
中找到的路径中。
答案 1 :(得分:0)
我也遇到了这个错误,我所做的是在安装目录中创建了imagemagick.exe的副本(对我来说是c:\ Program Files \ ImageMagic)并将文件重命名为identify.exe
答案 2 :(得分:0)