How to draw text which includes single quotes

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
APeskes

How to draw text which includes single quotes

Post by APeskes »

Hi,

how can i draw text like "It's magic"

Code: Select all

 -draw "text 100,100 'Its magic'" 
will work fine of course, but

how to do it with the single quotation mark included.

I don't want to put the text in a file, like this

Code: Select all

 -draw @MyText.txt
Thanks,

Alexander Peskes
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to draw text which includes single quotes

Post by anthony »

Old question. short answer -- use -annotate instead.
Long answer see IM Examples, Drawing Special Characters in the Text String
http://www.imagemagick.org/Usage/draw/#special
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
APeskes

Re: How to draw text which includes single quotes

Post by APeskes »

It works.
Thanks a lot.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to draw text which includes single quotes

Post by anthony »

Which part, the long answer or the short answer, or both :lol:
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply