mogrify - draw text from file on image doesn't work

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: mogrify - draw text from file on image doesn't work

Post by anthony »

The '@' and '%' escapes interfered with the use of -draw in the SVG vector image conversions. It also was not very usable when quoting problems had to be handled.

The IM v6 method is to use -annotate.

See IM Examples at
http://www.imagemagick.org/Usage/text/#annotate

Also note that when reading from a file IM will take the text as literial, that it it will NOT do any percent escapes, \n for newline (though real newlines are newlines!), or
another '@' file read. This is vital as it ensures that the input text draw is really what the user gets, regardless of what characters are using in that text.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply