Forked from srosenthal/gist:3adc0dafcdd3c55656bad7a4a8de9c91
Created
August 28, 2020 18:41
-
-
Save fabiosoft/e16cebdd4c8b072281c559a9f992063b to your computer and use it in GitHub Desktop.
Batch convert HEIC (iPhone) photos to JPEG, preserving creation dates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.heic; do sips -s format jpeg -s formatOptions best "${i}" --out "${i%heic}jpg" && touch -r "${i}" "${i%heic}jpg"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment