Problem with caption not wrapping properly

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
troyd1
Posts: 73
Joined: 2007-07-29T17:13:19-07:00

Problem with caption not wrapping properly

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with caption not wrapping properly

Post 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.
troyd1
Posts: 73
Joined: 2007-07-29T17:13:19-07:00

Re: Problem with caption not wrapping properly

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem with caption not wrapping properly

Post 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
Post Reply