【发布时间】:2017-08-22 20:22:53
【问题描述】:
我正在尝试使用 Imagemagick 来处理用户上传的图像。我已经使用流星 npm install imagemagick 安装了 Imagemagick 包。但我现在需要的是如何导入这个包以在我的 Meteor 项目中使用它
这是我的代码
import {Component, OnInit} from '@angular/core';
import { Router } from '@angular/router';
import { Meteor } from 'meteor/meteor';
import template from './tpl.dashboard.component.html';
@Component({
selector: 'traitement_par_lot',
template
})
export class TPLcomponent implements OnInit {
constructor() {}
ngOnInit() {
var features = Imagemagick.identify('assets/img/unkown-user.jpg');
console.log(features);
});
}
目前我得到错误'找不到名称'Imagemagick''
【问题讨论】:
标签: node.js angular meteor imagemagick