So try this (unix syntax):
Code: Select all
im7 magick \
-background white -bordercolor white -fill green -gravity center \
-size 160x160 -font Arial caption:"AB" -trim \
-set option:ht "%h" \
-border 0x10 -resize "160x%[ht]\!" \
-size 160x120 -font Arial caption:"AW" -trim \
-border 0x10 -resize "160x%[ht]\!" \
-size 160x80 -font Arial caption:"AX" -trim \
-border 0x10 -resize "160x%[ht]\!" \
-size 160x40 -font Arial caption:"AX" -trim \
-border 0x10 -resize "160x%[ht]\!" \
-size 160x20 -font Arial caption:"AX" -trim \
-border 0x10 -resize "160x%[ht]\!" \
-append \
output1.jpg
Code: Select all
im7 magick ^
-background white -bordercolor white -fill green -gravity center ^
-size 160x160 -font Arial caption:"AB" -trim ^
-set option:ht "%h" ^
-border 0x10 -resize "160x%[ht]^!" ^
-size 160x120 -font Arial caption:"AW" -trim ^
-border 0x10 -resize "160x%[ht]^!" ^
-size 160x80 -font Arial caption:"AX" -trim ^
-border 0x10 -resize "160x%[ht]^!" ^
-size 160x40 -font Arial caption:"AX" -trim ^
-border 0x10 -resize "160x%[ht]^!" ^
-size 160x20 -font Arial caption:"AX" -trim ^
-border 0x10 -resize "160x%[ht]^!" ^
-append ^
output1.jpg
Is that what you want? If so you can control the spacing between rows by the border option by changing the 10 to whatever value you want.
If you are trying to keep the letters undistorted and have more space horizontally between the characters, then right now I do not know how that might be done other than writing each character separately and adjusting manually until it looks correct. See -kerning.
So you would have to create each character as an image, trim, pad and append horizontally with space between. See +smush.
Or create a blank image of width you desire and use -gravity east/west to composite the character images on the right/left and then trim and pad the height, then -append each row image