Well, let's see an example on how to use all the above resources.
Create a file called sample_signature.png and upload it to your webroot/sig folder, with the following contents:
<?php
$image_info = array(
'image' => 'sample_signature.gif'
);
$image_text = array(
array(
'x' => 8,
'y' => 6,
'color' => array(50, 100, 180),
'font' => 9,
'text' => " This is my first dynamic signature!"
),
array(
'x' => 8,
'y' => 22,
'color' => array(50, 100, 180),
'font' => 9,
'text' => " Nice, isn't it? :-)"
)
);
include('./includes/dynamic_gd_image.php');
?>This is how it looks like:

Explanation:
$image_info['image']: Is the name of the background image stored in your webroot/sig/images folder. Please, note it must be a GIF image. If you want to use other image formats for your backgrounds, you should touch the relevant part of the sig/includes/dynamic_gd_image.php script.
$image_text: This is an array with information for every line of text that you want to display over your background image. The number of lines, depends on the size of your background image.
$image_text['x'] and $image_text['y']: Coordinates relative to the top/left corner of your background image.
$image_text['color']: Is an array of RGB color codes. Each item is the Red, Green and Blue component of the color.
$image_text['font']: A positive numeric value indicates an item of the $gdfonts array defined on top of the sig/includes/dynamic_gd_image.php script. A negative numeric value specifies any of the built-in GD fonts (-1 to -5, in this case).
Creating your first dynamic signature
Submitted on Mon, 2006-01-30 20:53









Recent comments
1 year 44 weeks ago
1 year 47 weeks ago
1 year 47 weeks ago
1 year 48 weeks ago
1 year 48 weeks ago
1 year 48 weeks ago
1 year 52 weeks ago
1 year 52 weeks ago
2 years 2 weeks ago
2 years 3 weeks ago