

Just make sure you’re in the right directory first. If you just have one image to process, this Terminal command will convert it from PNG to JPG. The utility is able to resize images constrained to a particular size, resample your photos, and convert your pictures from one format to another. The name stands for “scriptable image processing system,” and it’s extremely handy. Then I found out (through an amazing feat of Google-Fu) about a funny-named little command in the Terminal called sips.

I’m a Terminal junkie, though, and prefer my method. After finding this tool, I found that you can actually use Automator to batch convert and resize images. We prefer to use JPG at TMO, so I’d been converting them one at a time using Preview’s Export feature. When I drag pictures out of the Photos app on my Mac, they’re almost inevitably exported as PNG. It’s a pretty common thing for me, needing to batch convert image files from PNG to JPG. If you need to batch convert image files, like from PNG to JPG, this trick is right up your alley (Image Credit: MTZD) How I Found a Way to Batch Convert Image Files Note that this should work on just about any version of OS X or macOS the utility it depends upon has been around for quite some time.

We’re going to use it to batch convert image files from PNG to JPG. I use this quick and dirty bash script mainly to convert from PNG to JPG files, but it can be easily modified and tweaked to do other things. If you’ve longed for a quick way to convert a handful of images (or more) from one format to another, I’ve got a treat for you.
