всем доброго времени суток помогите сделать чтобы в грабере наложить копирайт,
вот кусочек кода
function im($i){
$image = imagecreatefromjpeg($i);
$imageColor = imagecolorallocate($image, 0, 0, 0);
$text = 'COPYRIGHT';
$font = 'aaa.otf';
header('Content-type: image/jpeg');
imagettftext($image, 10, 0, 70, 15, 100, $font, $text);
imagejpeg($image);
imagedestroy($image);
return $i;
}
чтобы изменить размер $image = imagecreatefromjpeg($i); замени на
Код:
span style="color: #0000BB"><?php$width = 80;$height = 100;$image = imagecreatetruecolor($width, $height);$size = getimagesize($i);imagecopyresampled($image, imagecreatefromjpeg($i), 0, 0, 0, 0, $width, $height, $size[0], $size[1]); |
чтобы переместить копирайт меняй тут позицию imagettftext($image, 10, 0, 70, 15, 100, $font, $text);