php - Increasing the size of watermark text applied to an image -
i have code:
<?php $filename = 'tulips.jpg'; $stringsize = 10000; $footersize = 40; $footer = 'blyxo.com/post/1234535'; list ( $width, $height, $image_type ) = getimagesize ( $filename ); $im = imagecreatefromjpeg ( $filename ); imagefilledrectangle ( $im, 0, $height, $width, $height - $footersize, imagecolorallocate($im, 128, 128, 128)); imagestring ( $im, $stringsize, $width - ( imagefontwidth ( $stringsize ) * strlen ( $footer ) ) - 2, $height - $footersize, $footer, imagecolorallocate ( $im, 255, 255, 255 ) ); header ( 'content-type: image/jpeg' ); imagejpeg ( $im ); ?> so; image this:

but, want set font bigger, doesn't works; i'm trying set $stringsize = 1000, $stringsize = 10, $stringsize= 9, (...) nothing.
and, if possible, want know how set footer in outset of photo; not abolute position; in outset.

you have used function... water mark set angle,light or bright color in text,size..
ref:http://in.php.net/manual/en/function.imagefttext.php
imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text )
Comments
Post a Comment