Error for convert command in command line
Steps to follow
- Confirm macport is installed for reference https://www.macports.org/install.php
- Then install imagemagick using any of the following method
install using command$ sudo port install ImageMagick
or using Homebrew command brew install imagemagick
or download from the link http://cactuslab.com/imagemagick/
- Then close your terminal and restart the pc and run your code again.
port install not work for me. it always return "Error: Port ImageMagick not found" if you failed installing with port, you can download pkg and install it directly from http://cactuslab.com/imagemagick/
You can also make it with help of Homebrew - which is quite nice and popular package manager
To Install homeBrew past in your terminal
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
To install imagemagick past in the terminal
brew install imagemagick
convert
is part of ImageMagick which is not installed by default on OS X.
From the download instructions on the ImageMagick site:
Install MacPorts
Install ImageMagick with
$ sudo port install ImageMagick