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: 49
Joined: 2017-07-25T23:57:06-07:00
Authentication code: 1151

hw to put space in between annotated text

Post by dt59 » 2017-08-12T17:20:43-07:00

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: 22079
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: hw to put space in between annotated text

Post by fmw42 » 2017-08-12T18:06:54-07:00

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: 49
Joined: 2017-07-25T23:57:06-07:00
Authentication code: 1151

Re: hw to put space in between annotated text

Post by dt59 » 2017-08-13T23:12:58-07:00

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

Post Reply