How to convert .heic images to .jpg on a mac

Easily convert airdropped photos (.heic) to.jpg for easy uploading by running the following three commands on your command line.

Step 0: Install libraries (only need to do this once)
$ brew install imagemagick
$ brew install ren
Step 1: Enter downloads directory
$ cd ~/Downloads
Step 2: Convert files
$ ren '*.heic' '#1.HEIC'; magick mogrify -monitor -format jpg *.HEIC
Step 3: Remove .heic files
$ rm *.HEIC

For repeated use it’s best to add an alias to your .zsh or .bash_profile. Below I named mine convert_heic

alias convert_heic="cd ~/Downloads && ren '*.heic' '#1.HEIC'; magick mogrify -monitor -format jpg *.HEIC; rm *.HEIC"

--

--