最好用PNG格式,新版本自己安装GD吧
GD的优点就是动态啊,当然能动态生成了
你要实现的功能说说

解决方案 »

  1.   

    例子--得到IP生成图片
    <?
      Header("Content-type: image/png");
      $img = ImageCreate(180,50);
      $ip = $_SERVER['REMOTE_ADDR'];
      ImageColorTransparent($img,$bgcolor);
      $bgColor = ImageColorAllocate($img, 0x2c,0x6D,0xAF); // 背景颜色
      $shadow = ImageColorAllocate($img, 250,0,0);    // 阴影颜色
      $textColor = ImageColorAllocate($img, oxff,oxff,oxff);       // 字体颜色
      ImageTTFText($img,10,0,78,30,$shadow,"d:/windows/fonts/Tahoma.ttf",$ip); //显示背景
      ImageTTFText($img,10,0,25,28,$textColor,"d:/windows/fonts/Tahoma.ttf","your ip is".$ip); // 显示IP
      ImagePng($img);
      imagecreatefrompng($img);
      ImageDestroy($img);
    ?>
      

  2.   

    我想楼主想问的是动画GIF的,按照理论应该是不行的,因为IMAGE函数中没有控制图象时间的函数。
      

  3.   

    1、动画是不可以的。
    2、鉴于版权的问题,目前不支持cgi了
    3、cgi专利很快就要到期了,估计明年就能支持cgi了
      

  4.   

    楼上所说的cgi应该是gif吧?
    明年到期????真的假的????
    期待…………
      

  5.   

    http://www.boutell.com/gd/faq.html里有这样一段When will you put GIF support back into gd?Many have asked whether gd will support creating GIF files again, since we have passed June 20th, 2003, when the well-known Unisys LZW patent expired in the US. Although this patent has expired in the United States, this patent does not expire for another year in the rest of the world. Since I have no way of limiting distribution of GIF-creating code to US users only that is guaranteed to please somebody else's lawyer, I have opted to follow the same policy that the ImageMagick authors are following: GIF creation will not reappear in gd until the patent expires world-wide on July 7th, 2004. I realize this situation is frustrating for many; please direct your anger and complaints toward the questionable patent system that allows the patenting of such straightforward algorithms in the first place. Thank you! 即使支持了GIF GD也无法生成能动的图片。
    php的图像函数其实都差不多,区别只是图片的格式