dotfiles-rene/heic-scripts/heic2jpg_resize
2026-03-14 10:02:31 +01:00

12 lines
318 B
Bash
Executable file

#!/bin/bash
# HEIC zu JPG konvertieren UND auf max. 1920px verkleinern
for file in *.{heic,HEIC}; do
if [[ -f "$file" ]]; then
output="${file%.*}.jpg"
heif-convert -q 90 "$file" "$output"
if [[ -f "$output" ]]; then
mogrify -resize 1920x1920\> "$output"
fi
fi
done