Bilder vom iPhone bearbeiten
This commit is contained in:
parent
370f5109b5
commit
029c55c06e
6 changed files with 80 additions and 10 deletions
12
heic-scripts/heic2jpg_resize_delete
Normal file
12
heic-scripts/heic2jpg_resize_delete
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue