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?".
airkemp
Posts: 2 Joined: 2011-09-29T02:54:55-07:00
Authentication code: 8675308
Post
by airkemp » 2011-09-29T08:03:42-07:00
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
Post
by Bonzo » 2011-09-29T09:34:07-07:00
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