Multiple watermarking in one command line with "composite" c
Posted: 2007-07-25T07:42:52-07:00
Hi,
I got a directory which contains my watermarkimage and a couple of images which I want to watermark.
$ ls
img_5439-0.jpg img_5439-1.jpg img_5439-2.jpg img_5439-3.jpg img_5439-4.jpg img_5439-5.jpg img_5439-6.jpg img_5439-7.jpg watermark.gif
It works great when I am doing only one image at the time, see:
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif input.jpg output.jpg
But what I need is having input equal *.jpg
I tried:
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif *.jpg
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif *.jpg *.jpg
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif *
but it ain't work.
Do I actually need to write a shell script for the loop or is there an easy way for my problem ?
Thanks.
Regards
I got a directory which contains my watermarkimage and a couple of images which I want to watermark.
$ ls
img_5439-0.jpg img_5439-1.jpg img_5439-2.jpg img_5439-3.jpg img_5439-4.jpg img_5439-5.jpg img_5439-6.jpg img_5439-7.jpg watermark.gif
It works great when I am doing only one image at the time, see:
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif input.jpg output.jpg
But what I need is having input equal *.jpg
I tried:
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif *.jpg
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif *.jpg *.jpg
composite -dissolve 20% -gravity SouthEast -geometry -50+35 watermark.gif *
but it ain't work.
Do I actually need to write a shell script for the loop or is there an easy way for my problem ?
Thanks.
Regards