fbpx

Convert HEIC to JPG on Mac

I was recently confused when I needed to upload a jpg photo to a website. After transferring the photo that I took on my phone to my computer, I learned that the image was in the HEIC (high efficiency image compression) format. I learned that HEIC uses more advanced compression than JPG format and that’s why Apple is using it on it’s new iPhone XR. However, I still needed to convert this HEIC file to a jpg.

So, how do you convert an HEIC file to a jpg file on mac?

Step 1: Install Homebrew

Open up your terminal by clicking on your spacebar and the command key at the same time, then type in terminal, and then click on Terminal.app to open it up. Once Terminal has opened, run the following command inside of it:

mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

Step 2: Install Imagemagick

Now that homebrew has been installed, run the following command in terminal to install imagemagick as well:

# install imagemagick on your computer using homebrew
brew install imagemagick

Step 3: Run magick command

And lastly, run the following command in terminal to convert a single HEIC file to a JPG.

# convert an HEIC image to a jpg image
magick convert example_image.HEIC example_image.jpg

Bonus Step: Convert Directory of HEIC files to JPG’s

If you would like to convert a directory of HEIC files to JPG’s, navigate to the directory that you want to convert using the cd command to move into a child directory and cd ../ to move into the parent directory. Once you’ve navigated to the directory with all of your HEIC files, simply run the following command in terminal:

# convert any HEIC image in a directory to jpg format
magick mogrify -monitor -format jpg *.HEIC

Leave a Reply

Your email address will not be published. Required fields are marked *