Help batch watermarking in windows

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
Babu
Posts: 2
Joined: 2019-03-13T11:31:35-07:00
Authentication code: 1152

Help batch watermarking in windows

Post by Babu » 2019-03-13T11:32:47-07:00

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. Lorem Ipsum Temp Mail 10 Minute Mail 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.
Last edited by Babu on 2019-03-23T11:18:38-07:00, edited 1 time in total.

User avatar
fmw42
Posts: 24614
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Help batch watermarking in windows

Post by fmw42 » 2019-03-13T11:45:21-07:00

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

User avatar
fmw42
Posts: 24614
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Help batch watermarking in windows

Post by fmw42 » 2019-03-13T11:53:07-07:00

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.

Post Reply