Error for convert command in command line

后端 未结 4 516
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 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
      

提交回复
热议问题