convert
|
'convert' is the ImageMagick
command line tool
|
-size
300x100
|
This says to generate an image
that 300 pixels wide and 100 pixels tall. This was picked arbitrarily,
and just has to contain the entire signature. Smaller is better as long
as the signature fits.
|
xc:black
|
This indicates that the
background should be filled black
|
-gravity
southeast
|
This indicates that the
signature is intended to go in the lower-right (southeast) corner
|
-font
symbol
|
This indicates that we'll be
using the Symbol font. To get a full list of all the fonts that are
available in the system, run 'identify
-list type'
|
-pointsize
20
|
This indicates the font size. A
point roughly translates to a pixel under the default configuration.
|
-fill
gray33
|
This indicates that we want to
use gray33 as the color. This roughly correspond to a #545454 gray.
Read on for why this color was chosen
|
-draw
"text 10,30 'John Smith 2005'"
|
This tells the system to write
the signature text (John Smith 2005). Because we're anchoring to the
southeast, the coordinates are a bit wonky. As run, the ImageMagick
places the upper right corner of the text (i.e. the 5) 10 pixels to the
left and 30 pixels up from the lower-right corner. Because it's offset
from the upper-right corner of the text, make sure to set the second
number greater than the pointsize, otherwise the text will be
chopped off.[2][4]
|
signature.png
|
This indicates the output file.
|