Intall the required tools
imagemagick and exiftool needs to be installed.
1
sudo apt install imagemagick exiftool
Convert .tif to .heic
1
2
3
4
5
mogrify -verbose -format heic *.tif
or
for x in *.tif; do echo "$x"; convert -verbose "$x" "${x%.tif}.heic"; done
1
for x in *.tif; do echo "$x"; exiftool -overwrite_original -tagsFromFile "$x" -all:all "${x%.tif}.heic"; done
1
for x in *.tif; do echo "$x"; exiftool -overwrite_original -tagsFromFile "${x%.tif}.XMP" -all:all "${x%.tif}.heic"; done