Batch resize images using command line
I often find during the app development that I need to resize multiple images and the quickest way to do that is to use
sips from the command line.
sips -Z 320 imagesFolder/* --out resizedFolder/
-Z flag maintains the original aspect ratio. The 320 sets the resolution of the longest edge of the resized image. If
--out flag is not set the
sips overwrites the original image.