I hope you can help me with a problem I've been knocking my head against.
I want to use ImageMagick to produce an image of a DIV on a web page. The DIV has width, height, font name and font size, so I use the command;
Code: Select all
convert -size 466x108 -background transparent -fill #000000 -font "Font.ttf" -pointsize 50 -gravity north caption:"This is a sample of TEXT" divImage.png
The ImageMagick generated text is the same size but it breaks in a different place and has a wider line spacing.
How can I make the two match up? I also need to do this with many different fonts and texts!
Any help would be much appreciated,
Simon