Page 1 of 1

Problem with caption not wrapping properly

Posted: 2011-05-26T08:52:02-07:00
by troyd1
I have 6.6.9-7. q16 dynamic - window 2003 server as well as XP. It does the same on both.

If I do:

convert -density 300 -size 1650x1275 xc:"#ffffcc" ( -background "#00
000000" -fill "#000000" -font c:\windows\fonts\CENTURY.TTF -size 1200x -pointsiz
e 28 -gravity center caption:"This is a test of some really long caption that is
intended to wrap and truncated" -trim +repage ) -gravity south -geometry +0+300
-composite -resize 20% test4.png

it does not wrap right. I have tried this with different fonts and font sizes and sometimes it works correctly and some times it does not. Is this a bug or am I doing something wrong? More times than not, it works correctly, but not always.

I isolated it down to:
convert -density 300 -background "#00000000" -fill "#000000" -font c
:\windows\fonts\CENTURY.TTF -size 1200x -pointsize 28 -gravity center caption:"T
his is a test of some really long caption that is intended to wrap and truncated
" test4.png

and it still does not wrap properly

Re: Problem with caption not wrapping properly

Posted: 2011-05-26T09:07:41-07:00
by magick
We're getting reasonable results with ImageMagick 6.6.9-10, the current release. If that version still fails for you, let us know.

Re: Problem with caption not wrapping properly

Posted: 2011-05-26T10:06:56-07:00
by troyd1
That vewsion was not available, so I uploaded 7.0. It is working fine on my test machine. I will load that version on my server and test it better and see what happens.

Re: Problem with caption not wrapping properly

Posted: 2011-05-26T10:10:23-07:00
by fmw42
troyd1 wrote:That vewsion was not available, so I uploaded 7.0. It is working fine on my test machine. I will load that version on my server and test it better and see what happens.

Do you mean IM 6.7.0.0? or IM 7.0.0.0? The latter is forked and in pre-alpha and I would not suggest you use it.

The latest release available today is 6.7.0.1. See http://www.imagemagick.org/script/binary-releases.php or http://www.imagemagick.org/download/www ... .html#unix