Batch Resize Images Quickly In Terminal


Mac: Several applications can resize a bunch of images, but it often takes some time and fiddling. Like with most Terminal commands, it just takes a little string of text to get your images down to size fast.

MacLife points out this helpful command line trick. Simple navigate to the directory you want in the Terminal (using the cd command) and typing the following (or variation of it):

sips -Z 640 *.jpg

So what’s happening? Well, “sips” is the command being used and -Z tells it to maintain the image’s aspect ratio. “640” is the maximum height and width to be used and “*.jpg” instructs your computer to downsize every image ending in .jpg. It’s really simple and shrinks your images very quickly. Just be sure to make a copy first if you want to preserve the larger size as well.

Terminal 101: Resize Images in the Terminal [MacLife]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


One response to “Batch Resize Images Quickly In Terminal”

Leave a Reply