Node.js can't see ImageMagick on Windows 7

I installed ImageMagick (ImageMagick-6.9.2-3-Q16-x64-static.exe) and add the following to my js file:

var easyimg     = require('easyimage');

but when I run the node.js application, I get this error:

ImageMagick not found EasyImage requires ImageMagick to work. Install it from http://www.imagemagick.org/script/binary-releases.php .

+4
source share
3 answers

Make sure the ImageMagick directory is in your path. Add it to the PATH environment variable of your system or user.

Verify by opening the new window and doing the following:

cd C:\PATH\TO\NODE_PROJECT\
echo %PATH%
imdisplay.exe

, imagemagick.

, :

node app.js

, , imagemagick, , .

set PATH=C:\PATH\TO\IMAGEMAGICK
C:\PATH\TO\NODE\node.exe app.js
+1

'magick.exe' 'convert.exe'.

+8

When installing ImageMagick, select the check box Install legacy utilities (e.g. convert).

+3
source

Source: https://habr.com/ru/post/1608986/


All Articles