Skip to content

Instantly share code, notes, and snippets.

@skanehira
Created July 10, 2023 15:45
Show Gist options
  • Save skanehira/d947dc860ed83aec0b6646a5cba3c119 to your computer and use it in GitHub Desktop.
Save skanehira/d947dc860ed83aec0b6646a5cba3c119 to your computer and use it in GitHub Desktop.
#!/bin/bash
dir=$1
for file in `ls $dir/*.HEIC`; do
filename=`basename ${file} .HEIC`
sips --setProperty format jpeg $file --out ${dir}/${filename}.jpeg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment