Re: IMAGENES CON TEXTO

From: Date: Tue, 20 Nov 2001 18:54:48 +0000
Subject: Re: IMAGENES CON TEXTO
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-15828@lists.php.net to get a copy of this message
hola... yo la hago mas o menos así:.... (ten en cuenta q ya la GD no trabaja con GIF sino con png y jpg....) ? Header( "Content-type: image/jpeg"); if ($length == "5") { $im = imagecreatefromjpeg("cont.jpg"); $black = ImageColorAllocate($im, 0, 0, 0); imagefill($im,-1,-1,$W); } elseif ($length == "6") { $im = imagecreate(59,20); $black = ImageColorAllocate($im, 0, 0, 0); imagefill($im,0,0,$W); } elseif ($length == "7") { $im = imagecreate(68,20); $black = ImageColorAllocate($im, 0, 0, 0); imagefill($im,0,0,$W); } elseif ($length == "8") { $im = imagecreate(77,20); $black = ImageColorAllocate($im, 0, 0, 0); imagefill($im,0,0,$W); } else { $im = imagecreate(86,20); $black = ImageColorAllocate($im, 0, 0, 0); imagefill($im,0,0,$W); } $white = ImageColorAllocate($im, 255, 255, 255); $nub = sprintf("%05d", $Count); ImageString($im,5,85,32, $nub, $black); ImageJpeg($im); ImageDestroy($im); ?> saludos. Javier ----- Original Message ----- From: "PHP - Ballester" <php@ballester.com.ar> To: <lista@phpes.com> Sent: Tuesday, November 20, 2001 6:15 PM Subject: [PHP-ES] IMAGENES CON TEXTO Hola listeros. Nunca use nada de imágenes con PHP, y me surgio la necesidad de insertar un texto dinamicamente en una imagen dada. Me pueden guiar de cómo hacerlo ? El script PHP estaría bajo Linux y tengo las librerias GD compiladas. Desde ya muchas gracias. ---------------------------------------------- .--. |o_o | |:_/ | // \ \ (| | ) /'\_ _/`\ \___)=(___/ @riel

« previous php.general.es (#15828) next »