ImageMagick error

前端 未结 5 1248
甜味超标
甜味超标 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条回答
  •  梦毁少年i
    2021-02-04 01:49

    OSX Mavericks seems break the link of jpeg lib. All you need to do is relink the jpeg, then reinstall imagemagick.

    brew unlink jpeg
    brew link jpeg
    

    Then reinstall imagemagick from source

    brew uninstall imagemagick
    brew install imagemagick --build-from-source
    

    Now you can check if jpeg is in the delegate

    identify -list configure | grep DELEGATES
    

    It should have jpeg now

    DELEGATES bzlib mpeg freetype jng jpeg lcms lzma png tiff xml zlib

提交回复
热议问题