For reference, this is the command I'm using now:
Code: Select all
convert -background "#7250AF" -gravity center -interline-spacing 10 -fill white -size 1280x720 -border 20x20 -bordercolor "#7250AF" caption:"abc" output.png
Code: Select all
convert -background "#7250AF" -gravity center -interline-spacing 10 -fill white -size 1280x720 -border 20x20 -bordercolor "#7250AF" caption:"abc" output.png
I wasn't aware there was a difference. I use the command line interface provided by ImageMagick. I'll edit my post.fmw42 wrote:The developers of ImageMagick have nothing to do with IMagick. If you need a limit in Imagemagick and if they implement it, you then need to get the Imagick developers to implement it also.
Unfortunately no, as the data needs to fit within a specified location on the sheet, as does other data.fmw42 wrote:You can always specify a pointsize and just the Width or just the Height when using label: or caption:. It will then use that pointsize and adjust the height or width, respectively. Does that help?
I think I stated this all in my first post above, but apologies if it was not clear.fmw42 wrote:Seems to me that using caption: with the exact width and height and no pointsize specified should work to fill your box. Can you show an example where it does not? Are you worried about having only one word, for example, and a large box, so that you get huge text. However, if you have lots of text and a small box, any attempt to limit the lower bound would write text too big for your box.
Code: Select all
2013-11-26T16:59:27-08:00 0:00.040 0.040u 6.8.7 Annotate convert[205]: annotate.c/RenderFreetype/1222/Annotate
Font /Library/Fonts/Arial.ttf; font-encoding none; text-encoding none; pointsize 12
...
2013-11-26T16:59:27-08:00 0:00.280 0.260u 6.8.7 Annotate convert[205]: annotate.c/RenderFreetype/1222/Annotate
Font /Library/Fonts/Arial.ttf; font-encoding none; text-encoding none; pointsize 44.25