How to draw auto fitted text on image
Posted: 2012-12-03T05:25:42-07:00
Hello. I want to make watermark by text, in such a way that it will fill the image diagonally and dynamically. I have used
And it is creating the watermark diagonally, but not auto fitting the image. Is it possible to do this?
Increasing pointsize will cover the image, but how can I determine the pointsize dynamically?
Code: Select all
convert -density 72x72 -colorspace RGB -weight bold -pointsize 20 -draw "gravity center fill '#BEBEBE' rotate 315 text 0,0 'Some Text" inputFile.jpg outputFile.jpg
Increasing pointsize will cover the image, but how can I determine the pointsize dynamically?