Using multiple -draw decoration

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
schrmh
Posts: 1
Joined: 2019-08-16T08:50:02-07:00
Authentication code: 1152

Using multiple -draw decoration

Post by schrmh »

On this site there is an example of using decoration UnderLine: https://www.imagemagick.org/Usage/text/#draw

Code: Select all

convert -list decoration 
lists four existing options:
LineThrough
None
Overline
Underline
So now I would like to use OverLine and UnderLine together on the same text.
What I do at the moment is:

Code: Select all

  convert -size 1276x1642 xc:white \
          -draw "font Arial  font-size 72  decorate OverLine \
                 fill dodgerblue  stroke dodgerblue  stroke-width 1 \
                 translate 10,110 rotate -15 text 0,0 ' TEXT ' \
                 font Arial  font-size 72  decorate UnderLine \
                 text 0,0 ' TEXT '" \
          output.jpg
but I consider this a hacky work-around since I actually have two texts here that just happen to be on the same position..
So is there a way to use UnderLine and OverLine together without using a second text?
Post Reply