Watermark Text Tile

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
airkemp
Posts: 2
Joined: 2011-09-29T02:54:55-07:00
Authentication code: 8675308

Watermark Text Tile

Post by airkemp »

Hi,

I have the follow bat file which overlays some text on all bitmaps in a folder.

Can anyone tell me how to use the tile command to tile the text accross the image instead of giving it a load of defined positions

Here's my code

Code: Select all

for %%f in (%1\*.bmp) 
do 
( convert "%%f" -pointsize 18 -fill black ^  -gravity northwest -annotate +0+0"WATERMARK" "%2\%%~nf.png" )
Thanks
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Watermark Text Tile

Post by Bonzo »

You will probably need to do some modifications to get working in a batch file:

Code: Select all

convert -size 140x80 xc:none -fill grey -gravity NorthWest -draw "text 10,10 'Copyright'" -gravity SouthEast -draw \"text 5,15 'Copyright'\" miff:- | composite  -tile - input.jpg output.jpg 
Image
Post Reply