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

View file

@ -0,0 +1,18 @@
#!/bin/bash
# HEIC zu JPG konvertieren und HEIC löschen
# 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" && rm "$file"
if [[ "$RESIZE" == true ]] && [[ -f "$output" ]]; then
mogrify -resize 1920x1920\> "$output"
fi
fi
done

View file

@ -0,0 +1,12 @@
#!/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

View file

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

10
heic-scripts/jpg_resize Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# JPG Bilder auf max. 1920px verkleinern
# Überschreibt die Originale!
for file in *.{jpg,JPG,jpeg,JPEG}; do
if [[ -f "$file" ]]; then
mogrify -resize 1920x1920\> "$file"
echo "Verkleinert: $file"
fi
done