Skip to content

Instantly share code, notes, and snippets.

@ChrisSwanson
Created September 2, 2021 23:16
Show Gist options
  • Save ChrisSwanson/672c305fa83954b551a446a93bbcaf33 to your computer and use it in GitHub Desktop.
Save ChrisSwanson/672c305fa83954b551a446a93bbcaf33 to your computer and use it in GitHub Desktop.
heic2jpg
$!/bin/bash
# if imagemagick is not installed, install it.
if ! command -v mogrify &> /dev/null
then
brew install imagemagick
fi
# convert heic files to jpg
mogrify -format jpg *.heic
# because case sensitivity is a thing...
mogrify -format jpg *.HEIC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment