Files
jlengrand.github.io/_posts/2011-12-20-a-simple-way-to-watermark-a-batch-of-images.markdown
julien lengrand-lambert 2e27933441 Imports all the Wordpress history into jekyll.
It kinda seems to work!
2014-02-09 01:14:08 +01:00

2.7 KiB

layout, status, published, title, author, author_login, author_email, author_url, wordpress_id, wordpress_url, date, categories, tags, comments
layout status published title author author_login author_email author_url wordpress_id wordpress_url date categories tags comments
post publish true A simple way to watermark a batch of images Julien Lengrand-Lambert jlengrand julien@lengrand.fr http://www.lengrand.fr 422 http://www.lengrand.fr/?p=422 2011-12-20 17:35:10.000000000 +01:00
programming
photo
bash
watermark
batch
image magick
github

Hi all,

Some time ago, I was searching for a way to simply watermark images to put them on my gallery.

I knew digikam could do this, but the package in debian was an old version and the feature was not inserted yet. In addition, I have never found a photo management software that would fit my needs yet . . .

I finally developed my own function with some bash and image magickI created it to be as simple to use as possible. It needs:

  • an input folder
  • an output folder
  • a watermark image
When run, the script inserts the watermark in all images of the input folder and save them in the output folder.

[bash] $ waterMark in_folder out_folder watermark_image [/bash]

As a bonus, the script automatically detects whether an image is in landscape or portrait mode before inserting the watermark, so that it is always in the right side.

Here is an example of the result :

[caption id="attachment_424" align="aligncenter" width="200" caption="picture of the "jardin des plantes" in Nantes"]picture of the "jardin des plantes" in Nantes[/caption]

This script is in an early stage for now, and should be upgraded with time. You can check out the TODO list here. 

You can download the script on my gitHub, or more simply download the project using git

[bash]

$ git clone git://github.com/jlengrand/batchWaterMarking.git

[/bash]

Feel free to fork the project or let me know about what would be useful for you.

Hope this will help some of you !

See ya ;)