Here are the commands that I was using to generate a text watermark image with good results, which now fails:
Code: Select all
magick -size 250x80 xc:grey30 -font Arial -pointsize 28 -gravity center \
-draw "fill gray70 text 0,0 'watermark'" \
fgnd.png
magick -size 250x80 xc:black -font Arial -pointsize 28 -gravity center \
-draw "fill white text 1,1 'watermark' \
text 0,0 'watermark' \
fill black text -1,-1 'watermark'" \
-alpha Off mask.png
magick fgnd.png mask.png -alpha Off -compose copy-opacity -composite watermark.png
magick mogrify -trim +repage watermark.png
Code: Select all
magick fgnd.png mask.png -alpha Off -compose copy-opacity -composite watermark.png
Using:
ImageMagick: git master (currently at 7.0.3.9.r11361.g6e6ce01)
libpng: 1.6.26
OS: Arch Linux x86_64
It was working perfectly until some few IM7 versions ago. I've tested with IM 6.9.6.5 and the above commands works perfectly for generating the text watermark image after being translated to IM6 syntax. But I would like to continue using IM7.
Any help or comments would be appreciated.
Thank you.