gm
gm copied to clipboard
the gm/convert binaries can't be found
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]
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.'?
Just do npm install gm. And make sure your system environment variable path is set correctly.
I thought this is pure js , then found out that it's just another ImageMagick wrapper 😢. I used https://github.com/lovell/sharp instead
brew install imagemagick
this will solve it for you
What about Windows users, who can't use brew?
I am using in AWS Lambda and getting the same error. Can anyone please help me with this and give the actual solution
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?
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.
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
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.
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.