Austrian Linux Forum

Qwc

Geschlecht
Männlich
Alter
29
Kommentare
138
Threads
10
Tutorials
2

Bio

Metal, Linux, Games, Life

Größenreduzierung von Bildern (rekursiv)

Die Bibliotek "imagemagick" ist Vorraussetzung. Script funktioniert nur für *.jpg und/oder *.png. #!/bin/bash echo $0 $1 $2 $3 $4 NUMCORES=8 SIZE="1024x768" if [ -z "$1" ] || [ -z "$2" ] then echo "Benutzung: $0 <size> <numcores>" echo "<size> = 1024x768\n<numcores> = Anzahl der Prozessorkerne" echo "Starting with default options: size=$SIZE; numcores=$NUMCORES" # SIZE=$1 # if [ -n "$2" ] # then # NUMCORES=$2 # fi fi if [ -n "$1" ] then SIZE=$1 fi ..