Very simple class to use to write text on an image. Supports GIF, PNG, and JPEG. GD must be compiled with php.
For the following example, provide your own image please.
Example:
=========================
$config=array(
"text" => "123456",
"text_colors" => "0 0 0", // RGB Seperated by spaces
"image_loc" => "coupon.jpg",
"image_type" => "JPEG", // PNG and GIF Supported
// Optional arguments; default is center area on image
"x_pos" => "",
"y_pos" => "",
);
$graphic=new img_add_txt($config); |