Code: Select all
M=im6.9.6-5q16convert # works, produces white text on green canvas
# M=im7.0.3-7q16magick # fails, produces no text on green canvas
V=`$M -version | sed -e "s/Version: //;s/\(.*Q[^ ]*\)*.*/\1/;1q"`
# White text on transparent black:
NONE=\#0000
$M xc:$NONE[512x128!] -pointsize 24 -fill white \
-gravity center -draw "text 0,0 '$V'" png32:text.png
# Opaque green canvas:
$M xc:green[512x128!] green.ppm
# Overlay the white text on the green canvas:
$M green.ppm -draw "image SrcOver 0,0 0,0 text.png" x:
echo $V
but if I comment out the first line and enable the second line, to run IM7 instead of IM6,
all I see is the green canvas.
Observed on Ubuntu 16:04 LTS, ImageMagick-7.0.3-7 Q16