in reply to Image::Magick Annotate text overflow

http://www.imagemagick.org/Usage/text/#overflow

http://www.imagemagick.org/Usage/text/#caption

  • Comment on Re: Image::Magick Annotate text overflow

Replies are listed 'Best First'.
Re^2: Image::Magick Annotate text overflow
by shibu_pu (Acolyte) on May 27, 2009 at 07:02 UTC
    Thank You

    I used both label and caption to fix it. I split the text with spaces in to words and using label method, I created an image with the longest word and recalculated the pointsize according to that image. Then using that pointsize and caption method, I created a new transparent image with the given image size so that the text was word wrapped. Then I used composite to put this transparent image over the given background image.