Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Convert .heic files to .jpg on linux (coming from an iOS11 device over USB)
# download release from github: and install at ~/tools/tifig
# then run these commands in the folder (just to keep things simple we normalize the file extension case before proceeding).
for f in *.HEIC; do mv "$f" "`echo $f | sed s/.HEIC/.heic/`"; done
for file in *.heic; do echo "~/tools/tifig -v -p $file ${file/%.heic/.jpg}"; done
Copy link

avma commented Nov 5, 2020

for image in *.HEIC; do tifig -v -p $image basename \$image .HEIC.JPG; done

Copy link

tlh24 commented Jan 13, 2021

for f in *.HEIC; do convert "$f" "${f%.HEIC}.jpg"; touch "${f%.HEIC}.jpg" -r "$f"; done

Copy file modification times as well.

Copy link

buragwitmo commented Sep 23, 2021

how to use this?
im a noob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment