if I want to make an image out of only text the font size is automatically adjusted when size of image is provided,
but here I want to extend an image to have some extra space to have text on it, in this case the font size does not adjust itself,
images are varied in sizes so i make them all with width of 227 pixel, and extend the whole image lengthwise to 504 pixel, here is my code, so the output image is: 227*504, but it seems that IM does not recognize it as image size for whatever reason.
Code: Select all
magick image1.jpg -resize 227 -gravity south -background lightblue -extent 0x504 -fill black -font C:/Windows/Fonts/FontsHeebo-ExtraBold.TTF ^ -gravity northwest -annotate 0x0+0+25 @text.txt image-resized1.jpg