| Дело в том, что в меня при появлении файла меню menu.php перестало работать наложения текста на фото...
Вот может в самом файле нучно что-то изменить (или в menu.php):
<?
if($ext=="jpg"){
$img = imagecreatefromjpeg($imagefile);
$h = imageSY($img);
$h1 = $h-50;
$h2 = $h-35;
$h3 = $h-20;
$h10 = $h-51;
$h20 = $h-36;
$h30 = $h-21;
}
if($ext=="gif"){
$img = imagecreatefromgif($imagefile);
$h = imageSY($img);
$h1 = $h-50;
$h2 = $h-35;
$h3 = $h-20;
$h10 = $h-51;
$h20 = $h-36;
$h30 = $h-21;
}
if ($img)
{
$color = imagecolorallocatealpha($img, 255, 255, 255, 40);
$line1 ="Автор: $avt";
$line1 = iconv('Windows-1251', 'UTF-8', "$line1");
$tit = iconv('Windows-1251', 'UTF-8', "$tit");
$box = imagettftext($img, 12, 0, 5, $h1, $color, "verdana.ttf", "$line1");
$box = imagettftext($img, 10, 0, 5, $h2, $color, "verdana.ttf", "$tit");
$box = imagettftext($img, 10, 0, 5, $h3, $color, "verdana.ttf", "1ua.com.ua");
$box = imagettftext($img, 12, 0, 5, $h10, $color, "verdana.ttf", "$line1");
$box = imagettftext($img, 10, 0, 5, $h20, $color, "verdana.ttf", "$tit");
$box = imagettftext($img, 10, 0, 5, $h30, $color, "verdana.ttf", "1ua.com.ua");
// Выводим изображение в браузер
if($ext=="jpg"){
header("Content-type: " .image_type_to_mime_type(IMAGETYPE_JPEG));
imagejpeg($img);
}
if($ext=="gif"){
header("Content-type: " .image_type_to_mime_type(IMAGETYPE_JPEG));
imagegif($img);
}
}
?> | |