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?".
arthur
Posts: 7 Joined: 2015-04-03T01:50:18-07:00
Authentication code: 6789
Post
by arthur » 2016-08-29T02:37:11-07:00
Hello,
I am having some issue trying to wrap text in a given width and pointsize.
Here is what I run:
Code: Select all
convert -size 400x -pointsize 50 caption:'This does not wrap' out.png
And this is what I get:
I would expect "wrap" to be on a new line.
Am I doing something wrong or is this a bug?
Tested with imagemagick 6.9.5 on OSX and imagemagick 6.7.7 on Ubuntu
Probably same issue
http://stackoverflow.com/questions/1158 ... -font-size
Thank you for your help
Arthur
Bonzo
Posts: 2971 Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England
Post
by Bonzo » 2016-08-29T03:18:19-07:00
From what I know text does not automatically wrap in caption, draw or annotate but I believe it does in label.
You can force it to depending on what language you are using with \n or new lines.
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2016-08-29T07:43:03-07:00
"caption:" should wrap, and generally does, eg:
Code: Select all
convert -size 200x -pointsize 50 caption:"This does not wrap" caption_200.png
But:
Code: Select all
convert -size 400x -pointsize 50 caption:"This does not wrap" caption_400.png
Looks like a bug to me.
v6.9.5-3 on Windows 8.1.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2016-08-29T09:41:38-07:00
Caption will not split a word to wrap. But it should wrap between the not and wrap words.
arthur
Posts: 7 Joined: 2015-04-03T01:50:18-07:00
Authentication code: 6789
Post
by arthur » 2016-08-29T10:04:42-07:00
Thank you everybody.
I have opened a similar thread in the Bugs section and I think we should continue there:
viewtopic.php?f=3&t=30376