Skip to content

Instantly share code, notes, and snippets.

@damiancarrillo
Forked from dublado/convert HEIC to JPG.sh
Created January 27, 2020 05:16
Show Gist options
  • Save damiancarrillo/98522a3907f159ae7e565987c8eba728 to your computer and use it in GitHub Desktop.
Save damiancarrillo/98522a3907f159ae7e565987c8eba728 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in *.HEIC
do
#echo $i
#ffmpeg -i "$i" -frames:v 1 -vsync vfr -q:v 1 -an "${i%HEIC}jpg"
sips --setProperty format jpeg "$i" --out "${i%HEIC}jpg"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment