How to batch convert image format in OS X

There was this very recent day I needed to convert a folder full of PNG formatted images to JPEG. I merely did it in manual, archaic way to be honest.

I regret that. Earlier today I learnt this amazing way to perform the same task and be done in seconds.

sips --setProperty key value image_file --out result_file_or_dir

Something like *.* or *.png will do the trick for image_file.

You definitely should include this snippet on your personal OS X commands toolbox. And note that on Linux (e.g. Ubuntu) you can use Mogrify.