Script para carregar imagem GIF direto no php.
function LoadGif ($imgname){
$im = @imagecreatefromgif ($imgname); /* Inicia a imagem */
if (!$im) { /* Verifica se foi criado */
$im = imagecreatetruecolor (150, 30); /* Pega as cores */
$bgc = imagecolorallocate ($im, 255, 255, 255);
$tc = imagecolorallocate ($im, 0, 0, 0);
imagefilledrectangle ($im, 0, 0, 150, 30, $bgc);
/* Saida */
imagestring ($im, 1, 5, 5, "Erro $imgname", $tc);
}
return imagegif($im);
}
