Basic command:
Here the background color of the title is defined by the color RGB=36,66,149. The text is centred (gravity), uses the "Futura-Bk-BT-Heavy" font at 100 points. The space defined as allowed is 1600 pixels. When it overflows 1600 pixels the line will flow to the next line. But we also define a hard newline by using "\n" within the text. The parameter "-background none" means the text itself will NOT have another separate label like background, but will be composited with transparent surroundings over the canvas. "xc" defines the canvas. Text color is defined as white with "-fill white".
You can add some kerning to space out:
Positive kerning values add space, negative values crush space.
Now if we wanted to make several titles, we will need to define the separate texts and their separate outputs, i.e. separate filenames. This can be done through 2 arrays, one for text input, and one for matching filename:
convert -size 1920x1080 xc:'rgb(36,66,149)' -background none -gravity Center -font 'Futura-Bk-BT-Heavy' -pointsize 100 -fill white -interline-spacing -5 -size 1600 caption:"Pricing And Inventory:\nSetting The Calendar" -composite Title.png
Here the background color of the title is defined by the color RGB=36,66,149. The text is centred (gravity), uses the "Futura-Bk-BT-Heavy" font at 100 points. The space defined as allowed is 1600 pixels. When it overflows 1600 pixels the line will flow to the next line. But we also define a hard newline by using "\n" within the text. The parameter "-background none" means the text itself will NOT have another separate label like background, but will be composited with transparent surroundings over the canvas. "xc" defines the canvas. Text color is defined as white with "-fill white".
You can add some kerning to space out:
convert -size 1920x1080 xc:'rgb(36,66,149)' -background none -gravity Center -font 'Futura-Bk-BT-Heavy' -pointsize 100 -kerning 10 -fill white -interline-spacing -5 -size 1600 caption:"Pricing And Inventory:\nSetting The Calendar" -composite title.png
Positive kerning values add space, negative values crush space.
Now if we wanted to make several titles, we will need to define the separate texts and their separate outputs, i.e. separate filenames. This can be done through 2 arrays, one for text input, and one for matching filename:
#! /bin/sh
# define the text array
text=("Benifits Of eDiig" "Short Summary Of Registration Process" "How To Fill The Registration Form" "How to Make Payment Of Deposit For Account Activation" "Documents Required For KYC" "Contact From eDiig Administration \nTo Explain Process For Activation" "Intimation On Completion \nOf Account Activation" "Non-Refundable One Time Security Deposit" "Security Deposit For Auctions (EMD)" "What You Can See Once EMD Security Deposit Is Paid" "Forfeiture Of Security" "Logging In Into eDiig" "Introduction To Interface" "How To Use Sale Calendar" "How To Use The Sale List" "How To View Live Auctions" "What Happens If Security Is Not Paid" "Inspection Of Vehicles- Physical" "Creating A Shortlist Of Vehicles \nYou Are Interested In" "How To Participate In Quoted Auctions" "Closing Date" "Closing Time" "Extension Of Closing Time \nOn Bidding At Last Moment" "How To Place A Quote And Bid" "Non-Quoted Or Regular Auctions" "Consumer Events " "How To Use My Quotes" "How To Use My Live Events")
#define filename array
filename=("TITLE00100.png" "TITLE00200.png" "TITLE00300.png" "TITLE00400.png" "TITLE00500.png" "TITLE00600.png" "TITLE00700.png" "TITLE00800.png" "TITLE00900.png" "TITLE01000.png" "TITLE01100.png" "TITLE01200.png" "TITLE01300.png" "TITLE01400.png" "TITLE01500.png" "TITLE01501.png" "TITLE01600.png" "TITLE01700.png" "TITLE01800.png" "TITLE01900.png" "TITLE02000.png" "TITLE02100.png" "TITLE02200.png" "TITLE02300.png" "TITLE02400.png" "TITLE02500.png" "TITLE02600.png" "TITLE02700.png")
# Use c style for loop
# get total subscripts in an array
total=${#movie[*]}
for (( i=0; i<=$(( $total -1 )); i++ ))
do
convert -size 1920x1080 xc:'rgb(189,95,33)' -background none -gravity Center -font 'Futura-Bk-BT-Heavy' -pointsize 100 -kerning 10 -fill white -interline-spacing -5 -size 1600 caption:${text[i]} -composite ${filename[i]}
done
No comments:
Post a Comment