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:

image

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.

enter image description here

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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -