Commands used:
Code: Select all
magick -size 130x50 xc:grey10 -font Arial -pointsize 25 -gravity center \
-draw "fill gray50 text 0,0 'watermark'" \
tmpfile-fgnd.png
magick -size 130x50 xc:black -font Arial -pointsize 25 -gravity center \
-draw "fill white text 1,1 'watermark' \
text 0,0 'watermark' \
fill black text -1,-1 'watermark'" \
-alpha Off tmpfile-mask.png
magick tmpfile-fgnd.png tmpfile-mask.png -compose copy-opacity -composite watermark.png
magick mogrify -trim +repage watermark.png
magick background.png watermark.png -compose dissolve -define compose:args=85% -gravity center -geometry +0+0 -composite background-watermarked.png
Code: Select all
convert -size 130x50 xc:grey10 -font Arial -pointsize 25 -gravity center \
-draw "fill gray50 text 0,0 'watermark'" \
tmpfile-fgnd.png
convert -size 130x50 xc:black -font Arial -pointsize 25 -gravity center \
-draw "fill white text 1,1 'watermark' \
text 0,0 'watermark' \
fill black text -1,-1 'watermark'" \
+matte tmpfile-mask.png
composite -compose CopyOpacity tmpfile-mask.png tmpfile-fgnd.png watermark.png
mogrify -trim +repage watermark.png
composite -dissolve 85% -gravity center -geometry +0+0 watermark.png background.png background-watermarked.png
Code: Select all
magick tmpfile-fgnd.png tmpfile-mask.png -compose copy-opacity -composite watermark.png
Code: Select all
composite -compose CopyOpacity tmpfile-mask.png tmpfile-fgnd.png watermark.png
After reverting this git commit the result comes back to the expected one, which should be:
Using imagemagick git master version in Arch Linux x86_64.
Any help or comments would be appreciated.
Thank you.