hi
when i run the following script for watermarking on windows it is working well but when i run the same script on linux server it is not working.please correct me where iam wrong.gd library is enabled on linux
<?php
function addTextToFile($infile, $outfile)
{
$image = imagecreatefromjpeg($infile);
$font_size = 12;
$color = imagecolorallocate($image, 205,205,255);
$black =imagecolorallocate($image, 0,0,0);
ImageTTFText ($image, $font_size, 0, 01, 10, $black, "ARIALBD.TTF","www.ap.com");
ImageTTFText ($image, $font_size, 0, 00, 9, $color, "ARIALBD.TTF","www.ap.com");
imagejpeg($image, $outfile, 100); // save to outfile
imagedestroy($image);
}
$newfile="back_test.jpg";
$newfile1="back.jpg";
addTextToFile($newfile, $newfile1)
?>
php on windows
php 4.3.6
gd 2.0.22
php on linux
php 4.4.4
gd 2.0.28
thanks
mrjameer