Gimp Watermark Script

If you need a macro script for tons of images, to create a watermark as just text, with your name or something else? This is your script!

Avoid expensive Photoshop, get Gimp for free!

Features

- a text based watermark

- automatically aligned where you want (in this case: bottom right)

- totally modifiable

- in a separate layer

- written in scheme language

- works cross platform in Linux, Windows and Mac.



The Code

(define (script-fu-bulevardi-watermark image) (let* ( ; variables you can modify yourself: (watermark "\© Your Name") (font "Arial") (fsize 14) (color '(255 255 255)) ; other vars you shouldn't modify: (wval (car (gimp-image-width image))) (hval (car (gimp-image-height image))) (textwidth (car (gimp-text-get-extents-fontname watermark fsize 0 font))) ) ; start script: (gimp-context-set-foreground color) (gimp-text-fontname image -1 (-(- wval textwidth)17) (- hval 28) watermark 10 TRUE fsize PIXELS font) (gimp-displays-flush) ) ) (script-fu-register "script-fu-bulevardi-watermark" "<Image>/Bulevardi Scripts/Watermark" "Adds watermark" "Bulevardi (Dirk Desmet)" "BLVDi" "Copyright (C) 2015" "*" SF-IMAGE "Input Image:" 0 )

Howto

You have to copy this code in a text editor and save it with .scm extention.

For Windows users, save this in:

C:\Users\MyUserName\.gimp-2.8\scripts\myscript.scm

The menu will auto attach in your Gimp menubar when restarting Gimp.



For Linux users, just save the .scm in a folder where you store your scripts.

Then in Gimp, click on Preferences, than Folders, and finally Scripts.

Do a refresh by using Filters, than Script-Fu, and finally Refresh Scripts from the image menubar. The script will now appear in one of your menus.

Alright! You're done!!

download the gimp right here