I am using this command to add a caption to an image:
Code: Select all
convert -background black -bordercolor black -fill white -size 300x20 -pointsize $myFontsize caption:$title -trim -border 5 -channel A -fx '(lightness/2)+.8' -geometry +$myX+$myY $input +swap -composite $output
For instance, if $title = "India contributes to 75% of the global spice production", the caption will read "India contributes to 75of the global spice production"
How can I avoid that?