ImageMagick error

前端 未结 5 1226
甜味超标
甜味超标 2021-02-04 01:19

When trying to run ImageMagick via node-imagemagick on my Grunt task, i get this error from ImageMagick:

Warning: Command failed: identify: unable to load

5条回答
  •  隐瞒了意图╮
    2021-02-04 01:50

    ImageMagick's module dependencies are out of date by the systems upgrade. You'll need to re-install homebrew packages. See this articles "Upgrading homebrew packages on OSX Mavericks", or "Install ImageMagicK on OSX Lion."

    Why is ImageMagick trying to load JPG coder at /usr/local/Cellar/imagemagick/6.8.8-9/lib/ImageMagick//modules-Q16/coders/jpeg.la

    ImageMagick is expecting a static library for JPEG. The module is simply not there, or unreadable.

    Why the double slash after ImageMagick// ?

    This is common with homebrew. It's safe, and will resolve to ImageMagick/.

    ... know a way to fix it?

    Run the followin in Terminal.app

    brew uninstall imagemagick
    brew update
    brew cleanup
    brew doctor
    brew install imagemagick
    

提交回复
热议问题