Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.5
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!

sab_wm_image

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

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

Reference:

  • 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:
2005-02-17
Posted here:
22 Mar 2005
Article modified:
23 Mar 2005

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (2)

Steve, thanks for making this. I’m sure I will find it enourmousely useful, if I should get it to work—lol.

Tell me, what does “usage” mean, exactly? Where does this go:

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

?

Inside my post?

I tried that, replacing with my paths to the respective image sources. But, no go. Do I have to modify the plug-in code itself, once installed.

I have also created and CHMODed the img/zir as necessary.

Where am I going wrong?

Many thanks!

jack
Jamie:

This plugin link is dead and the domain is gone. You may want to remove it.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern