ImageMagick: How to Convert HEIC to JPG

Updated

Learn how to convert HEIC photos to JPG using ImageMagick

ImageMagick: How to Convert HEIC to JPG

Before we start, make sure you have ImageMagick installed on your computer and your HEIC photos ready in a folder. If you don't have it yet, run this command:

brew install imagemagick

First, open your terminal and navigate to the folder that has your photo. To convert a single file, run this command:

magick input.heic output.jpg

Just remember to replace input.heic with your actual filename, and output.jpg with the name you want for the new file. Your original HEIC file stays untouched.

If you have a whole folder of photos, use mogrify instead:

magick mogrify -format jpg *.heic

The -format jpg option sets the new format, and *.heic matches every HEIC file in the folder. File extensions are case-sensitive, so use *.HEIC if your files have capital letters. Don't worry if you don't see a success message, this finishes in a second or two.

To make sure everything worked, run open output.jpg and check the photo.

undefined

One more tip: to control the file size, add -quality 90 before the output name. The value goes from 1 to 100, and 90 is a good balance. If you ever see a no decode delegate error, your ImageMagick is usually missing the libheif library.