Convert HEIC images to JPG
Published: 2018-12-06 • Last updated: 2020-07-14
My wife needed to upload a couple hundred pictures, from her Mac, to an online service that makes photo albums. The service didn’t accept images with the
.heic extension, so she needed to convert them to
.jpg. This would take many hours to do one-by-one, so thankfully ImageMagick supports conversion of HEIC images. Here’s how to do it.
# Install Homebrew
First, install Homebrew, which is a popular package manager for Mac.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install ImageMagick
brew install --with-libheif imagemagick
# Convert the images from HEIC to JPG
Finally, convert your images. This command will leave the original
.heic image, then make a new
.jpg image with the same name.
mogrify -format jpg *.heic
# Delete original HEIC images
Optionally, delete the original