Re: how to overlay simple text on JPG image?

Fred Weinhaus <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <p06240802c7697becc82e@[192.168.1.2]>
>Hi,
>
>I have a large number of JPG files. I would like to superimpose a
>different text banner on each file.  In other words, I'm looking for a
>command like:
>
>% for file in filelist
>      add_text_banner text_banner_text file file_output.jpg
>
>The banner text can be as plain as possible, as long as the font size is
>big enough.
>
>thanks in advance!



For text within the image, you will need to create some text on a 
transparent background (automatically sized to pointsize desired or 
width) using label: or caption:, then composite the text image over 
the background image.

see
http://www.imagemagick.org/Usage/text/
and
http://www.imagemagick.org/Usage/compose/

Or if you know exactly where you want the text added, you can use 
-annotate or -draw

see
http://www.imagemagick.org/Usage/text/
and
http://www.imagemagick.org/Usage/annotating/

if you just want to add a label outside the bounds of the image, you 
can use montage -label

see
http://www.imagemagick.org/Usage/montage/#label

These can be done in a loop.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.