aheckmann / gm

GraphicsMagick for node
http://aheckmann.github.com/gm/
6.95k stars 615 forks source link

the gm/convert binaries can't be found #610

Open mirwaleed opened 7 years ago

mirwaleed commented 7 years ago

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]

ghost commented 7 years ago

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.'?

Karan80 commented 7 years ago

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

onmyway133 commented 7 years ago

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

x5engine commented 6 years ago

brew install imagemagick

this will solve it for you

paddotk commented 4 years ago

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

RahulChouhan96 commented 4 years ago

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

LeoCreer commented 3 years ago

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 commented 3 years ago

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.

emimarz commented 2 years ago

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

DetectiveFalcon commented 1 year ago

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 commented 8 months ago

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.