How to convert photos saved as iPhone digital photo format (.HEIC) to .JPEG on Ubuntu

Install the required library and other dependency with this code

[pastacode lang=”bash” manual=”sudo%20apt-get%20install%20libheif1%20libheif-examples” message=”” highlight=”1″ provider=”manual”/]

Point the commandline to the related directory with .HEIC extensioned photo files

[pastacode lang=”bash” manual=”cd%20%7B%24into_the_directory_which_contains_photo_files%7D%0A%0A” message=”” highlight=”1″ provider=”manual”/]

Save exported versions of .HEIC photos to .JPEG ones in the directory with this command

[pastacode lang=”bash” manual=”for%20file%20in%20*.HEIC%3B%20do%20heif-convert%20%24file%20%24%7Bfile%2F%25.HEIC%2F.jpg%7D%3B%20done” message=”” highlight=”1″ provider=”manual”/]

ref: Askubuntu