Mac: Converting a directory of images into JPG files

Recently I was presented with a problem where I had a directory of about 1000 graphic files of mixed formats (png, gif, bmp, jpg), and I needed to convert them all to jpg files.

I tried various solutions but I ended using the following command in my Mac’s terminal.

mkdir jpegs; sips -s format jpeg *.* --out jpgs

This command creates directory called “jpgs”, and converts all of the files in the current directory into .jpg format, and moves them into the newly created “jpgs” direcotry.

It truly saved the day.