-gravitycheck the documentation with examples .
Update : OK. I misunderstood the task.
But IMHO, you can still create your numbers as an image (of course, you can customize the font, etc.) and crop it:
/usr/bin/convert -fill black -size 40x40 label:$NUMBERS -transparent white -trim numbers.gif
Now check the size of the new image
/usr/bin/identify trimmed.gif
Then figure out where to place it on your image. I leave it to you -)
Now you only need to combine the numbers with your image in the ideal position (replace + X + Y).
/usr/bin/composite -geometry +X+Y trimmed.gif original_image.jpg original_with_numbers.jpg
NTN
source
share