Error for convert command in command line

后端 未结 4 517
Happy的楠姐
Happy的楠姐 2021-02-01 03:13

I have a bash shell script as below.

#!/bin/bash

SIZES=("512" "1024" "2048")

for i in ${!SIZES[*]}
do
    SIZE=${SIZES[$i]}
    ec         


        
相关标签:
4条回答
  • 2021-02-01 03:48

    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/

    0 讨论(0)
  • 2021-02-01 03:54

    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.
    0 讨论(0)
  • 2021-02-01 04:01

    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
      
    0 讨论(0)
  • 2021-02-01 04:11

    You can also make it with help of Homebrew - which is quite nice and popular package manager

    1. To Install homeBrew past in your terminal

      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    2. To install imagemagick past in the terminal

      brew install imagemagick

    0 讨论(0)
提交回复
热议问题