I'd like to create image, that is subtitle to image. It should look like in VLC or like in YouTube with dark background.
I created something like this:
Code: Select all
convert -background 'white' -transparent 'white' -size '720x480' -fill "rgba(55,55,55,0.7 )" -draw "rectangle 0,380 720,480" -fill 'yellow' -font 'Helvetica' -pointsize '30' -gravity 'South' caption:'TEST' a.png
And one more. How can I dynamic calculate position of text. If I have text: TEST, it require only one line on the image, but: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt" will require more lines, and I want that grey are will fit to this text. So how to do it dynamicaly?
Can someone help me?
Regards