Manipulate image files from the cli using sips

October 10, 2014

If you’re on Mac OSX, you have a really nifty cli tool at your disposal: sips. It uses OSX core image processing capabilities, and makes them available for shell scripting or batch image manipulation. Rejoice!

This would be a basic example:
sips -Z 200x200 image.jpg
To resize image.jpg to be 200×200 pixels.

For more info, check
man sips

Have fun!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: