Content last modified Monday 3 September 2018
hop to #bottom
Current version:
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 2 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!


This plugin will add a watermark to an image on the fly.

<txp:sab_wm_image src="source_image.jpg" wmsrc="watermark.gif" xpos="right" ypos="bottom" tmpdir="img/zir/" pad="5" />


  • src= – REQUIRED – The path to the source image. This can be a URL! Valid file types are GIFs, PNGs and JPEGs.
  • wmsrc= – REQUIRED – The path to the image used for the watermarking. Because of the common use of transparency in a watermark image, valid types are GIFs and PNGs.
  • xpos={left|center|right} – The horizontal position of the watermark. Defaults to center.
  • ypos={top|center|bottom} – The horizontal position of the watermark. Defaults to center.
  • tmpdir= – The temporary directory to store the image while it’s being displayed in the browser. This directory MUST be writable by your webserver (chmod 777)! If you have problems getting the to display and you don’t knwo what this means, ask! Defaults to “img/zir/”.
  • pad= – The number of pixels to pad the side of the watermark. For example, specifying pad=”10”, xpos=”left” and ypos=”top”, the watermark will end up starting from 10 pixels away from the top-left edge. Defaults to 5.
Article Request Count:
Initially released:
Posted here:
23 Mar 2005

You know you want to visit the Archives.
Published with Textpattern