Thank you for the reply... 😉
That did not do the job... The font itself look abit better than the previous one with * -1, but somehow it's looking weird... 🙁
http://forum.flashvacuum.com/images/sig/signature.php
This is the code that I have to create the image with the arial font...
$fontType = "arial.ttf";
$fontType = realpath($fontType);
$fontSize = 8;
$tmpImage = imagecreatefromjpeg($signImage);
$img = imagecreatefromjpeg($signImage);
$bg_color = imagecolorallocate ($img, 255, 255, 255);//RGB values - Backgroundcolor of stats
$text_color = imagecolorallocate ($img, 0, 0, 0);//RGB values - Textcolor stats
$text_color = ($text_color * -1);
imagefilledrectangle ($img, 0, 0, $width, $height, $bg_color);
imagecopy ($img, $tmpImage, 0, 0, 0, 0, $width, $height); // Copy stats
imagecolortransparent($img, $bg_color); // Set Background transparent
$i = 0;
while($i < count($output)){
imagettftext($img, $fontSize, 0, $left, $top + $spacing * $i, $text_color, $fontType, $output[$i]);
$i++;
}
header("Content-Type: image/png");
imagepng($img);
imagejpeg($img, $newImage, $compression);
//Imagejpeg($img,'',100);
ImageDestroy ($img);