Problem with image created with GD
Posted: Wed May 03, 2006 2:39 am
feyd | Please use
Thks
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi to all
We have a script that create a "button" image with gd
This script use our ttf upload online, in script dir
All work great ok for 1 year, now the image created is bad.
Seems they have antialiasing but this is set 0
Correct Image:[url]http://www.webstyler.it/public/ok.gif[/url]
Bad Image:[url]http://www.webstyler.it/public/ko.gif[/url]
Script is really simpe:Code: Select all
//================================================
$im = ImageCreateFromGif('base.gif');
$color = ImageColorAllocate($im,255,255,255);
imagettftext($im, 8.5, 0, 14, 13, -$color, "asimo.ttf", $_POST['name']);
$file_pulsante="$dirsharefile/".$pulsante.".gif";
Imagegif($im,$file_pulsante);
ImageDestroy($im);
//================================================Thks
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]