I have a bash shell script as below.
#!/bin/bash SIZES=("512" "1024" "2048") for i in ${!SIZES[*]} do SIZE=${SIZES[$i]} ec
convert is part of ImageMagick which is not installed by default on OS X.
convert
From the download instructions on the ImageMagick site:
Install MacPorts
Install ImageMagick with
$ sudo port install ImageMagick