5

I Installed ImageMagick (ImageMagick-6.9.2-3-Q16-x64-static.exe) and add in my js file following:

var easyimg     = require('easyimage');

but when I start my node.js app I get this error:

ImageMagick Not Found EasyImage requires ImageMagick to work. Install it from Link.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Oleg Baranovsky
  • 368
  • 5
  • 22

3 Answers3

10

In windows, rename file 'magick.exe' to 'convert.exe' will work.

J.Lyu
  • 932
  • 7
  • 16
  • 1
    This worked, I'd just recommend *copying* magick.exe as convert.exe – James Gentes Aug 30 '16 at 15:30
  • 1
    Worked for me as well. Windows 10, Node 6.9.1. The accepted answer (the steps, i had the env variables already defined) ran without a problem, but i wasn't getting the `GM` module (with a sub-classed `imagemagick`) to do some conversions. Renaming/copying magick.exe to convert.exe helped here. – arunmenon Nov 02 '16 at 14:21
  • 1
    Indeed, this fixed the issue at my end as well (Windows 10). Thanks! – hazardous Jan 16 '17 at 07:59
5

When you install ImageMagick, check the option Install legacy utilities (e.g. convert).

Pavel
  • 1,278
  • 2
  • 17
  • 34
2

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

Test by opening a new command window and running the following:

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

The last step should launch a viewer which is in the imagemagick path.

If you set and verifed the path is correct then you should not get any error when your run:

node app.js

If that fails try removing everything except imagemagick from your path in case your edits have resulted in a corrupt path.

set PATH=C:\PATH\TO\IMAGEMAGICK
C:\PATH\TO\NODE\node.exe app.js
chriskelly
  • 7,526
  • 3
  • 32
  • 50
  • yes I read about this and install this thing but it doesn't help – Oleg Baranovsky Sep 25 '15 at 14:04
  • I tested the fix. It worked for me by setting the path in the system menu but not when setting process.env in node. I will update the answer – chriskelly Sep 25 '15 at 14:48
  • 3
    in my path I already have ImageMagick and I try from console to convert image and all is ok, but from node.js I see the error. – Oleg Baranovsky Sep 25 '15 at 14:50
  • open a new cmd window. echo %PATH%. Make sure your path IS up to date. Like I say, I got the same error and it works for me now – chriskelly Sep 25 '15 at 14:51
  • C:\Program Files\ImageMagick-6.9.2-Q16;C:\Program Files (x86)\AMD APP\bin......... – Oleg Baranovsky Sep 25 '15 at 15:05
  • @OlegBaranovsky : Made a final edit to the answer. Some effort required to install software, reproduce your error and then fix it. May I suggest you test updated answer then accept, upvote or delete the question. – chriskelly Sep 25 '15 at 22:50