Skip to content

Add a watermark to a bunch of images

The Problem: You have a bunch of images (like files in an directory ;-)) you want to add with a watermark.

The Solution (an easy one):

!/bin/sh mkdir withLogo for f in *.jpg do composite -gravity SouthEast -watermark 25% ~/path/to/my/watermark.png $f withLogo/$f done

As far as you see, this shell script creates a directory called "withLogo" and walks to every file with the ending "jpg". The script combines every file with the "~/path/to/my/watermark.png" file saves it into "withLogo".

Just change in the directoy with the images you want to add with a watermark and type in "sh path/to/my/combine/".

If the command "composite" is not on your system, try to install "imagemagick".

Translate to de es fr it pt ja


No Trackbacks


Display comments as Linear | Threaded

No comments

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Markdown format allowed
Form options