mirror of
https://github.com/Findus23/IM-Arbeitsauftrag.git
synced 2024-08-27 19:52:14 +02:00
Änderung von anderen Branches übernommen
This commit is contained in:
commit
394c987aa7
1 changed files with 7 additions and 5 deletions
10
script.sh
10
script.sh
|
@ -10,7 +10,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
format=$(zenity --entry --text "Welches Dateiformat soll ausgegeben werden?" --title "Dateiformat") || exit 1
|
format=$(zenity --entry --text "Welches Dateiformat soll ausgegeben werden?" --title "Dateiformat") || exit 1
|
||||||
if [ -z $format ]
|
if [ -z $format ] # keine Eingabe
|
||||||
then
|
then
|
||||||
format="png"
|
format="png"
|
||||||
fi
|
fi
|
||||||
|
@ -21,6 +21,7 @@ then
|
||||||
name="2008-Sanierung-"
|
name="2008-Sanierung-"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Logo wird verkleinert"
|
||||||
convert -monitor -resize 100x Logo-ohne-BRG-klein.png ./done/logo.png
|
convert -monitor -resize 100x Logo-ohne-BRG-klein.png ./done/logo.png
|
||||||
|
|
||||||
a=1
|
a=1
|
||||||
|
@ -37,14 +38,15 @@ do
|
||||||
-gravity SouthEast ./done/logo.png -geometry +15+15 \
|
-gravity SouthEast ./done/logo.png -geometry +15+15 \
|
||||||
-composite \
|
-composite \
|
||||||
-bordercolor snow -background black \
|
-bordercolor snow -background black \
|
||||||
-gravity center -font 'Liberation Sans' -pointsize 26 \
|
-gravity center -font Liberation-Sans -pointsize 26 \
|
||||||
+polaroid \
|
+polaroid \
|
||||||
./done/$name$a_f.$format
|
./done/$name$a_f.$format
|
||||||
echo "$a/$dateianzahl*100" | bc -l >&3
|
echo "$a/$dateianzahl*100" | bc -l >&3
|
||||||
((a++))
|
((a++))
|
||||||
done
|
done
|
||||||
echo "# Thumbnails werden erstellt..." >&3
|
echo "# Thumbnails werden erstellt..." >&3
|
||||||
montage -monitor -label '%f\n%wx%h' -geometry '300x+5+5' ./done/$name*.$format -caption '%f\n%wx%h' -font 'Liberation Sans' -pointsize 20 -background transparent -frame 5 ./done/Thumbnails.$format
|
rm ./done/logo.png
|
||||||
|
montage -monitor -label '%f\n%wx%h' -geometry '300x+5+5' ./done/*.$format -caption '%f\n%wx%h' -font Liberation-Sans -pointsize 20 -background transparent -frame 5 ./done/Thumbnails.$format
|
||||||
|
|
||||||
echo "# Das Programm ist fertig." >&3
|
echo "# Das Programm ist fertig." >&3
|
||||||
notify-send --app-name=imagemagick --icon=imagemagick -t 5000 Imagemagick "Konvertierung abgeschlossen" #im Paket libnotify-bin
|
notify-send --app-name=imagemagick --icon=imagemagick -t 5000 Imagemagick "Konvertierung abgeschlossen" #im Paket libnotify-bin
|
||||||
rm ./done/logo.png
|
|
||||||
|
|
Loading…
Reference in a new issue