|
array(11) { ["GD Version"]=> string(13) "2.0 or higher" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(false) ["GIF Create Support"]=> bool(false) ["JPG Support"]=> bool(true) ["NG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(false) ["JIS-mapped Japanese Font Support"]=> bool(false) }
上面是我的GD資?,
當我使用gdImageCreateFromGif()時報錯。
Fatal error: Call to undefined function: gdImageCreateFromGif() ....
請問。。何如編譯才能支援gdImageCreateFromGif()
我用的是gd 2.0.28
安裝時
** Configuration summary for gd 2.0.28:
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Xpm library: no
Support for pthreads: yes
沒有提到gif
編譯PHP時提示
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageGif in -lgd... (cached) no
What's new in version 2.0.28?
GIF support has been restored. See gdImageGif, gdImageGifCtx, gdImageGifPtr, gdImageCreateFromGif, gdImageCreateFromGifCtx, and gdImageCreateFromGifPtr. These functions are now thread-safe, similar to the PNG and JPEG manipulation functions.
The new gdImageCreatePaletteFromTrueColor function is identical to gdImageTrueColorToPalette, except that it returns a new image rather than permanently modifying the original.
謝謝~ |
|