#!/bin/bash
bild="$1"
ergebnis="$2"
convert -gravity South -pointsize 15\
"$bild" -resize 512x512 -write mpr:orig \
-background white -splice 0x18 \
-draw "text 0,0 'Original'" \
\( mpr:orig -channel red -separate \
-background red -splice 0x18 \
-draw "text 0,0 'Roter Kanal'" \) \
+append \
\( \
\( mpr:orig -channel green -separate \
-background green -splice 0x18 \
-draw "text 0,0 'GrĂ¼ner Kanal'" \) \
\( mpr:orig -channel blue -separate \
-background blue -splice 0x18 \
-draw "text 0,0 'Blauer Kanal'" \) \
+append \) \
-append \
"$ergebnis"