hw to put space in between annotated text

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
dt59
Posts: 63
Joined: 2017-07-25T23:57:06-07:00
Authentication code: 1151

hw to put space in between annotated text

Post by dt59 »

Code: Select all

exec("magick cake1.png -fill #991918 -annotate 355x355+0+0 dave dte")
the above code will generate error simply because of the space in between dave and dte any idea on hw to deal with dese issue
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: hw to put space in between annotated text

Post by fmw42 »

Use single quotes as below, especially around your text string

Code: Select all

exec("magick cake1.png -fill '#991918' -annotate 355x355+0+0 'dave dte'")
In the future please (always) provide your IM version and platform/OS.
dt59
Posts: 63
Joined: 2017-07-25T23:57:06-07:00
Authentication code: 1151

Re: hw to put space in between annotated text

Post by dt59 »

its prints the name with the single quote and dats not wat i want
Post Reply