/ mozey.co / blog

osx batch resize images

March 1, 2016

🔗 Terminal

cd path/to/images

Get image dimensions

sips -g pixelHeight -g pixelWidth file.jpg

Resize images WARNING This command overwrites the original files

sips -Z 1024 *.jpg

Adjust image quality

sips --setProperty formatOptions 80 file.jpg

Adjust size and quality

sips -Z 2048 --setProperty formatOptions 36 file.jpg

🔗 Preview

Open images in preview

Select All

Tools > Adjust Size...