I use on my iPhone HEIF (High Efficiency Image File Format) format for storing my photos.
This format is widely supported throughout Apple ecosystem but sometimes I need to quickly convert photos from HEIF to JPG to be able to use these photos also elsewhere (Windows, some websites, etc.)
I use for this purpose convert
command line tool from ImageMagick
Install imagemagick on MacOS using homebrew:
$ brew install imagemagick
Then you can easily convert single photo by covnert
command in your Terminal
like this:
$ convert my_photo.heic my_photo.jpg
(NB - HEIF format uses .heic
extension)
Or all HEIF photos in given directory:
$ for IMAGE in *[hH][eE][iI][cC]; do convert $IMAGE $(echo $IMAGE | sed 's/.[hH][eE][iI][cC]/.jpg/g'); echo "${IMAGE} converted";done
(NB - it is necessary to look for both heic
and HEIC
extensions because sometimes is extension in lower case and sometimes in upper case)