Skip to content

Instantly share code, notes, and snippets.

@vanroy86
Forked from bittercoder/convert.sh
Created January 6, 2021 04:54
Show Gist options
  • Select an option

  • Save vanroy86/081f2212e2533263dedcacd1b187e66c to your computer and use it in GitHub Desktop.

Select an option

Save vanroy86/081f2212e2533263dedcacd1b187e66c to your computer and use it in GitHub Desktop.
Convert .heic files to .jpg on linux (coming from an iOS11 device over USB)
# download release from github: https://github.com/monostream/tifig/releases 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment