Annotate image with filled text by image size

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Eugene
Posts: 2
Joined: 2014-09-28T06:30:47-07:00
Authentication code: 6789

Annotate image with filled text by image size

Post by Eugene »

I have multiple images and now I need to annotate them with the single text line. The problem is that I need to maximize the size of the text to fill source image.
If I choose the pointsize option it gives me constant text size and it does not work good.
Text is variable by characters size and I cannot set constant pointsize.
Everything I try to do via batch file in Windows 8.1 Pro.

Please help me to annotate my images.

How to solve my problem?
Eugene
Posts: 2
Joined: 2014-09-28T06:30:47-07:00
Authentication code: 6789

Re: Annotate image with filled text by image size

Post by Eugene »

PS
My text is a single line, but I need to fill with it whole image. So it's probably have to wrap into multiple lines on the final image.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Annotate image with filled text by image size

Post by fmw42 »

Use label: with a given width and transparent background to create a new image. Then composite that image over your other image.

see
http://www.imagemagick.org/Usage/text/#label
Post Reply