Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic text fill
#2
Bumping this up in case anyone has a good idea for Gimp.

I think you might be better off using command line ImageMagick (IM). http://www.imagemagick.org and a good forum https://github.com/ImageMagick/ImageMagick/discussions

I can get a result (of sorts) with a list of numbers, random or otherwise in a text file, and a set of numbered images.
Planting the number in two places on an image.

...but I use linux and not too sure about the equivalent Windows batch commands.

The linux file looks like this, for simplicity takes a png as input and outputs a jpeg.

Code:
#!/bin/bash

file=$(cat list.txt)
img=1
for line in $file
do
  echo "$line"
    magick $img.png \
    -gravity South -font Arial -pointsize 32 -fill white -annotate +0+5 $line \
    -gravity North -font Arial -pointsize 32 -fill white -annotate +0+5 $line \
    $img.jpg
  img=$((img+1))
done

..no use for Windows, just as an example, although the magic command will work
Reply


Messages In This Thread
Automatic text fill - by taholmes160 - 01-08-2023, 04:53 PM
RE: Automatic text fill - by rich2005 - 01-09-2023, 11:06 AM
RE: Automatic text fill - by taholmes160 - 01-09-2023, 12:32 PM
RE: Automatic text fill - by rich2005 - 01-09-2023, 12:50 PM

Forum Jump: