If you are a blogger with many photos, you shoud want to add watermarks on all photos. Though I could use photoshop, I think an opensource application would be better. I choose GIMP, and use the Script-Fu to generate the bookmarks.
Install the Gimp and Script
You can get the gimp windows binary at http://www.gimp.org/windows/. Run the installer is enough. Download the rs-watermark.scm. Copy the watermark.scm into “D:\Program Files\GIMP-2.0\share\gimp\2.0\scripts”(If your GIMP installed at D:\Program Files\GIMP-2.0 ). I changed the script watermark.scm at GIMP Registry, because it only can used in GIMP GUI Interface.
Write your own bat file
Then you can write a bat file(I name it rs-watermark.bat) which include the your own paramers, here is mine:
set str=%1
set str=%str:\=/%
"D:\Program Files\GIMP-2.0\bin\gimp-2.6.exe" -i --verbose -b "(script-fu-rs-watermark \"%str%\" \"RockSun's Blog\" \"Century Gothic\" 30 3 50)" -b "(gimp-quit 0)"
- script-fu-rs-watermark: script’s name you download;
- \”%1\”: the image will to add watermark;
- \”RockSun’s Blog\”: the text of the watermark;
- \”Century Gothic\” : the Font of the watermark.
- 30: the size(px) of the text;
- 3: the location of text, ‘3′ means the upper-right, you can choose 0, 1, 2;
- 50: the opacity of the watermark.
Run it
In my compute, In the command window I input “wp-watermark.bat huangpu.jpg” , then I get the image below:

黄埔江 HuangPu River
Add it to your context Menu
Then you can make it appear in your context menu, import this reg file into your computer(you also had to change the path, here is mine):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\RSGimp]
@="Make RockSun Watermartk"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\RSGimp\command]
@="F:\\rocksun\\gimp-script\\rs-watermark\\rs-watermark.bat \"%1\""
Then you should see the context menu like this:

context menu
All files you can download or checkout from http://gimp-script.googlecode.com/svn/trunk/rs-watermark/ . I create this project to collect and produce gimp script, you can join it.
Related posts:
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.