ImageMagick image stack example
Below is an example of use of the image stack in ImageMagick. On Unix/Linux, run the following command stack_test.png):
magick logo: \( -size 320x28 xc:white -gravity center -pointsize 14 -fill black -annotate +0+0 "A_TEXT" -rotate 30 \) +append stack_test.png
The above command appends some rotated text to the left of a (built in) image of the ImageMagick wizard. I got the text rendering snippet from fmw42′s post on the ImageMagick forums. The result is below:
What if we want to generate two text labels and append them into a single image? We can run the command below:
magick \( -size 100x28 xc:white -gravity center -pointsize 14 -fill black -annotate +0+0 "FOO" \) \( -size 100x28 xc:white -gravity center -pointsize 14 -fill black -annotate +0+0 "BAR" \) +append append_multi_text_test.png
And the result we get is as follows: