Irfanview ではそれが可能だとは思いませんが、私はそのプログラムをあまり使用していません。ここに Irfanview のコマンドライン オプションのリストがありますがlabel
、 、text
またはについては言及されていませんannotate
。
Linux、OSX、および Windows で無料で利用できる ImageMagick のみを提案できます。
入力ファイルが呼び出されIdAndText.txt
、次のようになっている場合:
id123456:Some text
id987654:Some different text, and a comma
id111222:Yet more stuff
次に、このようなものを実行できます
#!/bin/bash
while IFS=":" read id text; do
convert -size 1000x250 xc:black -fill yellow -pointsize 36 -gravity center -draw "text 0,0 '$text'" $id.png
done < IdAndText.txt
そして、あなたはこれを手に入れるでしょう
id123456.png

id987654.png

id111222.png

テキスト ファイルを読み取るには Windows のような狂った方法があります。これを試して報告するかもしれませんが、ImageMagick の部分は Windows でもほぼ同じです。
Windows では、次のようなものです。
FOR /F "delims=: tokens=1,*" %%A IN (IdAndText.txt) DO convert -size 1000x250 xc:black -fill yellow -pointsize 36 -gravity center -draw "text 0,0 '%%B'" %%A.png