ritual.sh/convert-images.sh
2026-01-02 13:33:46 +00:00

7 lines
No EOL
205 B
Bash
Executable file

#!/bin/bash
find content -type f \( -iname "*.heic" -o -iname "*.heif" \) | while read -r file; do
output="${file%.*}.jpg"
magick "$file" -quality 85 "$output"
echo "Converted $file to $output"
done