Skip to content

Instantly share code, notes, and snippets.

@mrmcwake
mrmcwake / heicToJpg.sh
Last active August 25, 2022 05:51 — forked from bittercoder/convert.sh
Recursively converts .heic files to .jpg on linux for a specified root directory (coming from an iOS11 device over USB)
#!/bin/bash
# Recursively converts all HEIC files to JPG for the specified directory. Skips any files that have already
# been converted. Requires tifig, download latest release from github:
# https://github.com/monostream/tifig/releases and install at /usr/bin/tifig
# (or add the install location you choose to your $PATH)
#
# usage: ./heicToJpg.sh [RootDirectory]
#
rootDir=$1
if [ -z "$rootDir" ]