Re: Text of differing sizes in separate lines
Posted: 2016-11-20T20:24:36-07:00
I am still not sure I understand. But for what I think you want, you need to resize each smaller image to stretch the width while holding the height constant. That means a resize with distortion by adding the ! to the size arguments. But then the bottom set(s) will likely be more blurred the smaller the height.
So try this (unix syntax):
I am not sure about Windows syntax, but I think it might be:
If that does not work, then one of the Windows users can probably correct it.
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
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