Page 1 of 1

How to Draw Text with a Semicolon

Posted: 2016-05-20T10:35:15-07:00
by Larsenv
I'm using this code on a Mac today.

Code: Select all

convert -size 1280x720 xc:none -font ./resources/Rodin-B.otf -pointsize 36 \
		   -stroke white -strokewidth 5  -draw "text 586,375 Released:" \
           -fill gradient:#0a0a0a:#2e2e2e  -draw "text 586,375 RELEASED:" \
           bootTvTex-Text1.png
It gives this to me in return.

Code: Select all

convert: non-conforming drawing primitive definition `:' @ error/draw.c/DrawImage/3173.
How can I fix this?

Thanks.

Re: How to Draw Text with a Semicolon

Posted: 2016-05-20T10:57:26-07:00
by snibgo
Your text needs to be quoted. Try single-quotes.

Code: Select all

'RELEASED:'

Re: How to Draw Text with a Semicolon

Posted: 2016-05-20T11:01:38-07:00
by fmw42
You need to put single quotes about the text in a draw command. See http://www.imagemagick.org/Usage/text/#draw

Also your gradient is not correct. Gradient colors are not separated by colons. They are separated by a hyphen and if you are using hex or rgb colors, then the whole value must be enclosed in double quotes.

See http://www.imagemagick.org/script/gradient.php