Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.

The above is likely not what you want as I mentioned above in my previous email. And as I said before, there is no easy way that I know to do what you want. Imagemagick cannot do both wrap and trim text that is too long.

So what I think you have to do is write the text with -annotate or -draw and place each line where you want on an image of the size you want for your box before adding the border. Then add the border. Then composite image in your 500x500 white background in the place you want. This is what I said in my last email message.