Page 1 of 1

watermark with many images

Posted: 2015-10-30T16:04:42-07:00
by nitrocost
hello every one
i have this code for watermark its work perfectly:

Code: Select all

convert image.png     -gravity Center logo.png  -compose Multiply -composite -gravity NorthWest  logo.png -compose Multiply -composite  Output.jpg
but its work only with 1 photo
i want to add watermark at all images who are in the same folder
all photos are: (*.png)
help me please.....
thanks in advance.

Re: watermark with many images

Posted: 2015-10-30T16:59:45-07:00
by fmw42
see mogrify with alpha compositing. This will work with the right choice of compose methods and always the same ONE watermark image. You can only do one composite in the mogrify command, so you will need to run mogifiy a second time for the second composite. The watermark image cannot be in the same folder unless it is a different image format than the images in the folder to be watermarked (i.e. a gif watermark and jpg or png images to be watermarked)

http://www.imagemagick.org/Usage/basics/#mogrify
http://www.imagemagick.org/Usage/basics ... fy_compose

Otherwise, you will need to write a script loop over each image in the folder. That will depend upon what platform you use (Unix or Windows) and you have not said which one you use nor what version of IM you are using.