1

I am using https://github.com/rsms/node-imagemagick on nodejs that runs on Azure. However, when I try to get info about a file ,ex

var im = require('imagemagick');
im.readMetadata('kittens.jpg', function(err, metadata){
  if (err) throw err;
  console.log('Shot at '+metadata.exif.dateTimeOriginal);
})

I get the error

"Error: Command failed: CreateProcessW: The system cannot find the file specified."

It seems that the system cannot find the path to imagemagick, but how do I solve this?

4

1 に答える 1

3

ImageMagick をインストールする必要があると思います。

それができるかどうか、またどのように行うかは、Windows Azure Web サイト、クラウド サービス、または仮想マシン (およびその場合、使用している OS) のいずれを使用しているかによって異なると思います。

まず、バイナリを Node.js コードと同じディレクトリにコピーして、そこで取得されるかどうかを確認します。

于 2012-12-10T17:34:05.760 に答える