gm icon indicating copy to clipboard operation
gm copied to clipboard

the gm/convert binaries can't be found

Open mirwaleed opened this issue 8 years ago • 11 comments

whats the reason of that error. whenever i called gm following error occur [Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-verbose" "/api/abc" this most likely means the gm/convert binaries can't be found]

mirwaleed avatar Dec 22 '16 09:12 mirwaleed

I am using 7.0.4, and I have the same issue. What do U mean by 'You can optionally install "legacy" tools (like "convert") during the IM7.x setup. HTH.'?

ghost avatar Jan 31 '17 16:01 ghost

Just do npm install gm. And make sure your system environment variable path is set correctly.

Karan80 avatar Mar 29 '17 09:03 Karan80

I thought this is pure js , then found out that it's just another ImageMagick wrapper 😢. I used https://github.com/lovell/sharp instead

onmyway133 avatar Aug 28 '17 12:08 onmyway133

brew install imagemagick

this will solve it for you

x5engine avatar Oct 19 '17 07:10 x5engine

What about Windows users, who can't use brew?

paddotk avatar Oct 18 '19 14:10 paddotk

I am using in AWS Lambda and getting the same error. Can anyone please help me with this and give the actual solution

RahulChouhan96 avatar Apr 22 '20 09:04 RahulChouhan96

I'm on Ubuntu using Image Magic

When I run

$convert -version

Version: ImageMagick 7.0.10-61 Q16 x86_64 2021-01-30 https://imagemagick.org Copyright: (C) 1999-2021 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI OpenMP(4.5) Delegates (built-in):

This is the error: Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-verbose"

@Karan80 When you say "And make sure your system environment variable path is set correctly."
Please elaborate because convert is accessible through the terminal. Should node gm default to convert command or do I have to install Graphic Magick as well?

LeoCreer avatar Feb 01 '21 20:02 LeoCreer

So this is not very clear... When using Image Magic you have to specify ImageMagic by

gm = require('gm').subClass({imageMagick: true});

For TypeScript

const im = subClass({ imageMagick: true });

I think we should move this in the documentation and explain this during the install process. It would be clear if we say when installing and using Image Magic you must use the following in your code.

gm = require('gm').subClass({imageMagick: true});

I would even put it in the error response message.

LeoCreer avatar Feb 01 '21 20:02 LeoCreer

I use const im = subClass({ imageMagick: true }); but still having the error {"error":"Could not execute GraphicsMagick/ImageMagick: convert \"/tmp/test.png\" \"-resize\" \"512x512\" \"/tmp/testResized.png\" this most likely means the gm/convert binaries can't be found"} with node v12 and typescript on ubuntu server gm was installed by node and imagemagick was installed on server

emimarz avatar May 19 '22 19:05 emimarz

I am using in AWS Lambda and getting the same error. Can anyone please help me with this and give the actual solution

Where you able to find a solution? I find myself in the same predicament. Thank in advance!

Even after installing imageMagick and GraphicsMagick it doesn't seem to work. Here's what I get: Could not execute GraphicsMagick/ImageMagick: magick "identify" "-ping" "-verbose" "/imagepath/" this most likely means the gm/convert binaries can't be found.

DetectiveFalcon avatar Oct 03 '22 17:10 DetectiveFalcon

Was this ever resolved?

I am using in AWS Lambda and getting the same error. Can anyone please help me with this and give the actual solution

Where you able to find a solution? I find myself in the same predicament. Thank in advance!

Even after installing imageMagick and GraphicsMagick it doesn't seem to work. Here's what I get: Could not execute GraphicsMagick/ImageMagick: magick "identify" "-ping" "-verbose" "/imagepath/" this most likely means the gm/convert binaries can't be found.

brianMxBm avatar Dec 26 '23 23:12 brianMxBm