sips - Scriptable Image Processing System

sips is a mac-internal cli program to batch-process images

Batch-Resize Images

IMAGES=()
for image in ~/Desktop/images/*.jpeg; do
    IMAGES+=("${image}")
done

for image in ${IMAGES[@]}; do
sips -Z 3000 "${image}" --out "${image/.jpeg/.3000.jpeg}"
sips -Z 2500 "${image}" --out "${image/.jpeg/.2500.jpeg}"
sips -Z 2000 "${image}" --out "${image/.jpeg/.2000.jpeg}"
sips -Z 1500 "${image}" --out "${image/.jpeg/.1500.jpeg}"
sips -Z 1000 "${image}" --out "${image/.jpeg/.1000.jpeg}"
sips -Z 500 "${image}" --out "${image/.jpeg/.500.jpeg}"
done