Created
December 29, 2023 14:35
-
-
Save michelep/46c3d8b03c4be4896ec87d4c9a268f86 to your computer and use it in GitHub Desktop.
Quick and dirty bash script to convert all .heic files in a directory to .jpg format
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
#!/bin/bash | |
# Set quality of JPEG files: value 0 (min) to 100 (max) | |
QUALITY=100 | |
for file in *.heic; do | |
if [ -f "$file" ]; then | |
fname=$(basename "$file" .heic) | |
heif-convert -q$QUALITY $file $fname.jpg | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment