TD-e.com

TD-enotes title image


Watermark it and Watermark batch

Two script-fu for The Gimp

Example

image watermarked with the script-fu 'watermark it'
Zoom image
space-filler

Description

"Watermark it" is a script-fu for the Gimp.  It adds an image watermark and/or a text watermark to a digital photo. A watermark can be placed at the center and/or in any corner of the photo.

To add watermarks to a single image, you need only 'Watermark-it'. To add watermarks to many images in a batch process, you need both scripts 'Watermark-it' and 'Watermark-batch'.

The field 'Watermark image' must contain a valid path to an existing image if you do place a watermark image at any of the five positions. If the path is not valid you will get an error message. If you do place text watermarks only (and no image watermark), the path does not need to be valid.

An x and y border margin can be set for the corner positions. The margin is irrelevant for the center position.

The most important factors for the final aspect of the watermarks are the image opacity, the text opacity, the text perimeter opacity and the font color. The font color is important even with the choice 'no color'. When 'no color' is selected, the hue of the font color is irrelevant, but the saturation and value of the font color do have an influence on the result. That's why I recommend to think in terms of HSV (hue, saturation, value) rather than RGB (red, green, blue) when you choose a font color.

Last but no least, if you keep the default settings to 'No watermark' for all the five positions, the script will just do... nothing !

The 'Watermark-batch' script has more fields than the 'Watermark-it' script. The two additional fields are the path to the source images and the path to the destination images, which must contain a valid path, each, of course.

The scripts have been tested with The Gimp version 2.4.2 on Linux Ubuntu 7.10 Gutsy Gibbon.



Versions

Watermark-it
2007.11.12 : Version 1.00

Watermark-batch
2007.11.12 : Version 1.00 for Gimp 2.4.0
2008.06.13 : Version 1.01 for Gimp 2.4.2, a variable conversion is necessary, which wasn't before.
2008.08.06 : Version 1.02 for Gimp 2.4.5, new while loop, since 2.4.5 doesn't like the old one. The version works well with Gimp 2.4.5 under Ubuntu. Windows users, please read the bottom of this page.


Download:

Click into the blue frames below where the scripts are listed.
Type Control-A to select the complete text of the script.
Type Control-C to copy the script to the clipboard.
Go to your text editor (gedit, Kate, Aedix, Notepad, etc) and type Control-V to paste the script.
Save the upper one as a file named watermark-it.scm
Save the lower one as a file named watermark-batch.scm
Linux Ubuntu or other Gnome:   use the text editor gedit or bluefish

Linux Kubuntu or other KDE:   use the text editor Kate or Quanta

Mac OS X:   use the text editor Smultron

Windoze:   use the text editor Aedix (free), or Notepad (but beware of the file extension .txt which is unwanted, the script file must have the extension .scm and not .scm.txt)

Other text editors are ok too, but word processors are not. Do not use Word, OpenOffice or similar tools.



Installation:

Copy watermark-it.scm and optionally watermark-batch.scm into one of the directories registered in the Gimp preferences under Folders/Scripts.
Linux Ubuntu and many others:
  /home/[username]/.gimp-2.n/scripts   or   /usr/share/gimp/2.0/scripts

Linux SuSE:
  /home/[username]/.gimp-2.n/scripts   or   /opt/gnome/share/gimp/2.0/scripts

Windoze:
  C:\.gimp-2.n\scripts   or   C:\program-files\gimp2.n\share\gimp\scripts
Then go to the menu Xtns (in The Gimp) and select Xtns / Script-Fu / Refresh Scripts. That's it.

The script watermark-it.scm can be called in the menu Filters / Decor / Watermark it...
The script watermark-batch.scm can be called in the menu Xtns / Batch / Watermark batch...



Script-fu watermark-it.scm for The Gimp

The script to watermark a single photo.




Script-fu watermark-batch.scm for The Gimp

The script to watermark many photos in a batch.
'Watermark-batch' needs 'Watermark-it' to be installed too.




Sponsorship

If you find the scripts 'Watermark it' and 'Watermark Batch' useful and want to support the developer, you can



License

The GNU general public license applies to the script-fu watermark-it.scm and to the script-fu watermark-batch.scm above.



Watermark image

You can use the following image as a watermark image. Create a new folder called wm under your Pictures folder. Right click on the image below and select 'save picture as...'. Save the watermark image to the folder wm.
A watermark image you can use to watermark your photos

If you have a logo and would like me to make a watermark image with it, I can do it for a small fee. Just contact me through the contact form.



Watermark-batch and Windows

Some reports have shown that Watermark-batch does not do anything when run in Windows. One report told that watermark-batch does work under Windows if the destination path is kept empty (I could not verify it, since I have no Windows). That would mean that the batch watermarked images will be stored in the source path and the source images would be replaced, thus you must save your sources elsewhere before running the batch (or lose them).

My advice for Windows users : Do use watermark-it when you work on single images. Watermark-it has been reported several times to work well under Windows. Do use Phatch for batch works on images.

Phatch : a free, stand-alone, user friendly python software that works under Linux, Mac OS-X and Windows. Phatch means Photo-Batch. It can do much more than just watermarks, quite any thinkable work on images, resizing, cropping, leveling and much more. A plus is that Phatch keeps the IPTC metadata of the images, while The Gimp keeps only the EXIF metadata, but loses the IPTC metadata. You can download Phatch at photobatch.stani.be .





Main |  Software |  Photo |  Quiz |  Reviews |  Tips |  Tutorials |  Flags |  Contact |  Privacy |  Terms |  About


Page tested with Opera, Chromium, Epiphany, Firefox, Konqueror, Midori, Seamonkey.
Copyright © 2005-2024 td-e.com, All rights reserved.
.... ....
... ...
.. ..
. .