<?php
$file = "http://www.gpuri.com/images/705/70592.png";
$fontcolor = "BLACK";
$fontloc = "fontas.ttf";
$dydis = "16";
$x = "79";
$y = "180";
header("Content-type: image/png");
header("Cache-Control: no-cache, no-store, max-age=0, must-revalidate");
$img = imagecreatefrompng($file);
$color = array(
"WHITE" => imagecolorallocate($img, 255, 255, 255),
"BLACK" => imagecolorallocate($img, 0, 0, 0),
"GRAY" => imagecolorallocate($img, 192, 192, 192),
"RED" => imagecolorallocate($img, 255, 0, 0),
"BLUE" => imagecolorallocate($img, 0, 0, 255),
"PINK" => imagecolorallocate($img, 255, 0, 135),
"VIOLET" => imagecolorallocate($img, 239, 0, 234),
"CYAN" => imagecolorallocate($img, 15, 235, 255),
"LIME" => imagecolorallocate($img, 0, 255, 0),
"GREEN" => imagecolorallocate($img, 60, 190, 60)
);
$colornames = array("WHITE", "GRAY", "RED", "BLUE", "PINK", "VIOLET", "CYAN", "LIME", "GREEN");
imagefttext($img, $dydis, 0, $x, $y, $color[strtoupper($fontcolor)], $fontloc, $_SERVER['REMOTE_ADDR']); //uzdedamas
tekstas
imagepng($img);
imagedestroy($img);
?>