Tile Watermark

This example demonstrates an unique feature of Asido to apply a tile watermark.

<?php
 
/**
* Include the main Asido class
*/
include('./../../class.asido.php');
 
/**
* Set the correct driver: this depends on your local environment
*/
asido::driver('gd');
 
/**
* Create an Asido_Image object and provide the name of the source
* image, and the name with which you want to save the file
*/
$i1 = asido::image('example.jpg', 'result_02.jpg');
 
/**
* Put a "tile" watermark image
*/
Asido::watermark($i1, 'watermark_02.png', ASIDO_WATERMARK_TILE);
 
/**
* Save the result
*/
$i1->save(ASIDO_OVERWRITE_ENABLED);
 
?>

Here you can see the source image, the watermark image, and the result:

 Source Image  Watermark  Result

You can download the source for this example from here:
http://www.asido.info/examples/watermark/example_02.phps

Leave a Reply

Powered by WordPress
Asido: PHP Image Processing Solution