I basically want to take a line of text and output it as a .png
file. This snippet here on its own works fine:
convert -background lightblue -fill blue -font Candice -pointsize 72 label:Anthony test.png
I have about 100 lines I need to process though, So I tried to do it through a loop, using PowerShell:
$MGLTriggers = Get-Content -Path ".\MGl\MG_Config.txt" -TotalCount 100
foreach ($CurItem in $MGLTriggers){
$Path = Join-Path -Path "./mgl/" -ChildPath ($CurItem + ".png")
convert -background lightblue -fill blue -font Candice -pointsize 72 label:$CurItem $Path}
Convert.exe throws this error for all the items:
convert.exe: no encode delegate for this image format `LABEL' @ error/constitute.c/WriteImage/1272.
I’ve searched everywhere and pulled fair amount of hair. What am I doing wrong? Any help would be appreciated.