tj / node-gify

Convert videos to gifs using ffmpeg and gifsicle
297 stars 35 forks source link

gm: command not found #9

Open zeke opened 10 years ago

zeke commented 10 years ago
$ gify Untitled.mov expansions.gif

/Users/z/.nvm/v0.10.31/lib/node_modules/gify/bin/gify:42
  if (err) { throw err; }
                   ^
Error: Command failed: /bin/sh: gm: command not found

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)

$ gify -v

  error: unknown option `-v'

$ gify -V
0.2.0

$ npm i gm -g
gm@1.16.0 /Users/z/.nvm/v0.10.31/lib/node_modules/gm
├── stream-to-buffer@0.0.1
├── array-series@0.1.5
├── array-parallel@0.1.3
├── through@2.3.6
└── debug@0.7.0

$ gify Untitled.mov expansions.gif

/Users/z/.nvm/v0.10.31/lib/node_modules/gify/bin/gify:42
  if (err) { throw err; }
                   ^
Error: Command failed: /bin/sh: gm: command not found

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)
zeke commented 10 years ago
$ node -v
v0.10.31
urre commented 9 years ago

@zeke do brew install imagemagick && brew install graphicsmagick

newasmod commented 6 years ago

doesnt work for me, using linux mint 18.1

1074531396 commented 2 years ago

I had configured /etc/profile for gm; I can excute ssh command gm .....;

but when I try to use nginx + lua + graphicsmagick to get thumbnail. os.excute("gm ......") it show in nginx/logs/error.log : sh: gm: command not found.

my Solution: ln -s /usr/local/graphicsmagick/bin/gm /usr/bin/gm

then it work.