watermark with many images

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
nitrocost
Posts: 1
Joined: 2015-10-30T15:54:12-07:00
Authentication code: 1151

watermark with many images

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: watermark with many images

Post 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.
Post Reply