Blog

Create Watermark Text on image using PHP

Here is the code for Creating a Watermark text on your own image using php. Try this


$warter = ‘welcome.jpg’;
$image = imagecreatefromjpeg($warter);
$font_size = 14;
$black = imagecolorallocate($image, 0,0,0);
ImageTTFText ($image, $font_size, 0, 56, 36, $black, “arial.TTF”,”Test Text”);
header(“Content-type: image/jpeg”);
imagejpeg($image);
imagedestroy($image);

This Post Has 0 Comments

Leave A Reply