twzWatermark

twzWatermark is a PHP class that watermarks a PNG, JPEG or GIF image. The watermark can be any custom text, or another image (usually a PNG with transparency).

example image

original image

example image

with text watermark

example image

with image watermark

The resulting image can be saved as a file, displayed in the browser, or returned as a PHP image resource for further processing. A watermarked image can be created with just 4 lines of code, eg

<?php
require('twzWatermark.class.php');
$wm = new twzWatermark('myphoto.jpg', 'mymark.png');
$wm->SetPosition('br'); // br = bottom right
$wm->GetImage('');
?>

The download includes some examples, and an opentype font for adding text watermarks.

twzWatermark
Version:

0.1

Licence:

GNU GPL

Requires:

PHP4+

Filename:

twzWatermark-v0.1.zip

File date: 

2009-07-30


Write a comment

  • Required fields are marked with *.