18
11

More than 5 years have passed since last update.

ImageMagick で convert 時にエラーが出た時

Posted at

ImageMagick で png を bmp に変換しようとした時に、以下のエラーが出た時

$ convert image.png image.bmp
convert: unable to load module `/usr/local/Cellar/imagemagick/6.8.9-8/lib/ImageMagick//modules-Q16/coders/png.la': file not found @ error/module.c/OpenModule/1282.
convert: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
convert: no images defined `clion/simple_game_loop/images/font.bmp' @ error/convert.c/ConvertImageCommand/3187.

ImageMagick をアンインストールした後に、--build-from-source オプションを付けて、インストールし直す

$ brew uninstall imagemagick
Uninstalling /usr/local/Cellar/imagemagick/6.8.9-8...
$ brew install imagemagick --build-from-source

参考

http://stackoverflow.com/questions/22715738/imagemagick-error
https://github.com/Homebrew/homebrew/issues/14325

18
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
11