Error for convert command in command line

后端 未结 4 569
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条回答
  •  Happy的楠姐
    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.

提交回复
热议问题