in reply to Re: Image::Magick Annotate text overflow
in thread Image::Magick Annotate text overflow
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.