Watermarking Images

‹ Dream | GIMP Script Font Hinting ›

I'm looking at ways to visually watermark my photos. Adrian had suggested that I do that a while back, and I wasn't extremely excited about the idea at the time, but I was considering it today. I've seen several choices of how to do this visually:

  1. an extra layer on top of the image (optionally transparent)
  2. mat inside the image file. National Geographic does this (black band on the bottom). I worry that this will force larger file sizes, both because of the larger image resolution and the solid color mat's susceptibility to compresison artifacts.
  3. bump map the photo itself (watermark is clear and looks 3D).

Sans-serif fonts seem to be popular, perhaps because they look less busy than serif fonts.

There's also several points in the workflow that this watermark could be inserted into the image

  1. There's a GIMP watermark script (install by putting the script into a file $HOME/.gimp-2.2/watermark.scm and running Xtns:Script-Fu:Refresh Scripts) -- but it's not useful, for example, for exports from picasa. Another disadvantage to this script is that GIMP's kerning isn't very good.
  2. ImageMagick's composite:
    composite -gravity SouthEast -geometry +100+100 watermarkfile.png orig.jpg new.jpg
    This would necessarily reduce image quality
  3. Using something like PHP to serve the image and add the watermark. This would necessarily reduce image quality.

I ended up going with a GIMP script, because it seems the most flexible, and picasa exports don't have much control over JPEG encoding anyway, so if I had infinite time, I wouldn't use them. But I really didn't like the look of GIMP's text tool output so I wrote a new script that uses arbitrary images in the four corners.

Update (2010-11-14): A python version which works with gimp-2.6 is available at https://github.com/wtanaka/gimp-watermark. To install it:

  1. cp watermark-wtanaka.com.py $HOME/.gimp-2.6/plug-ins/
  2. chmod +x $HOME/.gimp-2.6/plug-ins/watermark-wtanaka.com.py
AttachmentSize
Binary Data watermark-wtanaka.com.scm3.1 KB

Comments

I grabbed your script and love it - thank you for your effort. Cheers!

Great work

Your script works like a charm, love it!

I sort of want the new layer added to be in overlay mode, but can't seem to modify the script to do this. When defining "wmlayer" changing "NORMAL-MODE" to "OVERLAY-MODE" doesn't seem to do it. Any ideas?

I might sound stupid but could you be a bit more detailed with how to install the script? xp thanks in advance!

Hi I use gimp-2.6.4 (linux) and grabbed your script. It seems that it has some problems with the new version of gimp - it is no longer able to load watermark images :-(

Watermark Warning
Error while executing script-fu-watermark-corners:
Error: Procedure execution of gimp-file-load failed: No such file or directory

best regards

Hi, I have the same problem.
I'm using GIMP 2.6.6 on Linux and I have exactly the same error:

Error while executing script-fu-watermark-corners:
Error: Procedure execution of gimp-file-load failed: No such file or directory

I need some help please :)
Thank you!

I'm looking for some help to fix this script in newer versions of GIMP.

This link could help?
http://registry.gimp.org/node/6703#comment-2149

Thanks again!

Hi Tanaka,

I downloaded your script but could not figure out how to invoke it. What are the inpit parameters?

Looking for something like:

 gimp -i -b '(watermark-wtanaka "path/image-to-be-watermarked.jpg" "path/watermark.jpg" opacity)' -b '(gimp-quit 0)'

I tried the regular watermak.scm and watermark-it.scm and many combination of inputs but no luck, only:

batch command experienced an execution error

Thank you inadvance,

Zsolt

Just downloaded your script. Great work!

Subscribe to All Posts - Wesley Tanaka