Give somebody some help and they just want more !
This WIDTH=%%w\nset sets the width variable of the caption box to the width of the image.
( -size %WIDTH%x -background none -font Arial -fill white -undercolor "#00000080" caption:"%CAPTION%" ) ^
-gravity north -geometry +0+20 -composite "%~dpn1_captioned%~x1"
-size "caption box size" -background "caption box colour in this case transparent" -font "font to use and you can input the path to a font anywhere on the PC" -fill "colour of the font" -undercolor "clolour behind the font" -gravity " position on the image - think main compass points " -geometry "offset amount from -gravity"
Add a -pointsize 80 and see what it looks like; then go from there.
Code: Select all
:: Add the caption to the image and save with _captioned at the end of the original filename
"%IMG%convert" %INFILE% ^
( -size %WIDTH%x -background none -font Arial -pointsize 80 -fill white -undercolor "#00000080" caption:"%CAPTION%" ) ^
-gravity north -geometry +0+20 -composite "%~dpn1_captioned%~x1"