Batch Resize Images in the Command Line

If you need to resize a bunch of images all at once you can use the “sips” command to do it. To resize a single image and keep the aspect ratio you issue the sips command providing it the new width in pixels and the image file. Example, if I wanted to resize the image BOB.png to be 400 pixels wide you would enter the command:

If you want to resize and ignore the aspect ratio put in both dimensions and use the lowercase “z” option, then height, then width:

To batch the change just do a wildcard on the filename. So to do all images in the your current folder you would issue the command:

Interested In A Free Installer?

Our custom Wifi On/Off script has been a popular post!
This script automatically turns off the wireless interface on a computer when it is connected to a wired network, and turn the wireless interface back on when it is disconnected from the wired network.
This script has two main benefits:
  1. Network connection failover
  2. Eliminates unnecessary wireless traffic, and Multi-homed computers.
We are now offering a pkg installer for this script to anyone that signs up for our mailing list.