Bilder vom iPhone bearbeiten

This commit is contained in:
rene 2026-02-19 10:55:48 +01:00
parent 370f5109b5
commit 029c55c06e
6 changed files with 80 additions and 10 deletions

18
heic-scripts/heic2jpg Normal file
View file

@ -0,0 +1,18 @@
#!/bin/bash
# HEIC zu JPG konvertieren
# Optional: Bilder auf max. 1920px verkleinern mit --resize
RESIZE=false
if [[ "$1" == "--resize" ]] || [[ "$NEMO_SCRIPT_SELECTED_FILE_PATHS" == *"--resize"* ]]; then
RESIZE=true
fi
for file in *.{heic,HEIC}; do
if [[ -f "$file" ]]; then
output="${file%.*}.jpg"
heif-convert -q 90 "$file" "$output"
if [[ "$RESIZE" == true ]] && [[ -f "$output" ]]; then
mogrify -resize 1920x1920\> "$output"
fi
fi
done