Page 1 of 1

Help batch watermarking in windows

Posted: 2019-03-13T11:32:47-07:00
by Babu
Ive been working at batch proportionally watermarking while preserving background png transparency for 6 hours before I came on here to grovel for help from you guys. I tried doing this in other software (IrfanView and XnConvert) and was unable to preserve the transparency of my png background images. I tried mogrify but couldnt get syntax in there right. Bonus points if the new image can be created in a subfolder and preserves the image.png filename.

Re: Help batch watermarking in windows

Posted: 2019-03-13T11:45:21-07:00
by fmw42
Please, always provide your IM version and platform when asking questions, since syntax may differ.

Also provide your exact command line and your images, if possible.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli


For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
https://imagemagick.org/script/porting.php#cli

Re: Help batch watermarking in windows

Posted: 2019-03-13T11:53:07-07:00
by fmw42
This works fine for me on IM 6.9.10.33 Mac OSX Sierra. Here I mogrify one transparent image, logot.png and put the rose: IM internal image at the bottom right corner.

Code: Select all

mogrify -format png -gravity southeast -draw "image over 0,0 0,0 'rose:'" logot.png
See https://imagemagick.org/Usage/basics/#mogrify_compose

For all image in a folder. Create a new folder for the output. Then cd to the current folder with your images

Code: Select all

cd path_to/imagefolder
mogrify -format png -path path_to/newfolder -gravity southeast -draw "image over 0,0 0,0 'rose:'" *
supply your own path where I have path_to.

On windows use \ rather than /. Also your cd will be something else.