How to convert HEIC to JPEG on macOS

If you take a photo on iPhone and save it on your Mac, I think that the extension of the picture file is heic, not png or jpeg.
To convert heic to jpeg in such a case, use iMazing HEIC Converter or the following command in macOS.

1
2
3
$ cd PHOTO_DIR

$ sips --setProperty format jpeg *.HEIC --out ./