Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fill text box from file
#5
Well lets see what replies get posted for Gimp use

but as a possible alternative there is ImageMagick (IM) http://www.imagemagick.org command line.

The bare bones
There is a linux utility sed and as far as I know a Windows version exists that can extract a line of text
Code:
sed '2q;d' lots-of-lines.txt > temp
That takes the second line from a text file and writes to a new file temp

then using IM
Code:
magick mogrify -font Futura-Bold.ttf -pointsize 30 -gravity Center -annotate +0+0 @temp  tile.png
That writes the text from temp into the graphic tile.png using the font and font size

Those would have to be wrapped up in a batch file to cycle through the lines of text and the tiles. The place to ask questions about IM is https://github.com/ImageMagick/ImageMagick/discussions
Reply


Messages In This Thread
Fill text box from file - by ohms_law - 03-20-2023, 02:42 AM
RE: Fill text box from file - by PixLab - 03-20-2023, 02:58 AM
RE: Fill text box from file - by rich2005 - 03-20-2023, 10:21 AM
RE: Fill text box from file - by ohms_law - 03-20-2023, 12:58 PM
RE: Fill text box from file - by rich2005 - 03-20-2023, 01:44 PM
RE: Fill text box from file - by ohms_law - 03-20-2023, 01:53 PM

Forum Jump: