Created
January 28, 2023 18:42
-
-
Save IPlayZed/fd219b8031d3a6e5da5808261f86edf2 to your computer and use it in GitHub Desktop.
Script to convert HEIC images to JPG images. It also deletes the original HEIC images.
This file contains hidden or 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
#!/bin/bash | |
#Written by Balázs Börcsök. | |
#Licensed under GNU GPL v2: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html | |
find . -type f -iname \*.heic | while read -r file | |
do | |
echo "Converting $file" | |
convert "$file" "${file%.heic}.jpg" | |
echo "Deleting $file" | |
trash "$file" | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment