
11/11/2006, 16:01
|
| | Fecha de Ingreso: noviembre-2006
Mensajes: 1
Antigüedad: 18 años, 4 meses Puntos: 0 | |
Gifs transparente en php Tengo un problema, quiero reducir el tamaño de imagenes gifs transparente, lo he hecho con el siguiente codigo, pero solo obtengo imagenes mas pequeñas con un fondo negro. Alguien me podra ayudar.
Thanks <?php
header("Content-type: image/gif");
//to capture the picture
$img2=imagecreatefromgif("ofertas/monitores/15_samsung.gif");
$w1=intval(imagesx($img2)/2);
$h1=intval(imagesy($img2)/2);
$img1=imagecreatetruecolor($w1,$h1);
imagecopyresized($img1,$img2,0,0,0,0,$w1,$h1,420,4 20);
imagegif($img1);
imagedestroy($img2);
imagedestroy($img1);
?> |