>백엔드 개발 >PHP 튜토리얼 > php 安装imagemagick、MagickWand 有关问题 急

php 安装imagemagick、MagickWand 有关问题 急

WBOY
WBOY원래의
2016-06-13 13:32:581105검색

php 安装imagemagick、MagickWand 问题 急~~
在网上下了一个 php-5.2.4_magickwand_q16_st.dll 把他放到了PHP根目录的 ext目录下 windows文件夹里的php.ini也增加了extension=php-5.2.4_magickwand_q16_st.dll 运行 phpinfo(); ?> 可以看到 


magickwand
MagickWand Backend Library ImageMagick 
MagickWand Extension Version 1.0.5  
ImageMagick support enabled  
ImageMagick version ImageMagick 6.3.5 09/21/07 Q16 http://www.imagemagick.org  
ImageMagick QuantumRange (MaxRGB) 65535  
MagickWand supported image formats A, ART, AVI, AVS, B, BIE, BMP, BMP2, BMP3, C, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DFONT, DNG, DPS, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, HISTOGRAM, HTM, HTML, ICB, ICO, ICON, INFO, IPL, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, JPX, K, LABEL, M, M2V, MAP, MAT, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PEF, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMFWIN32, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XV, XWD, Y, YCbCr, YCbCrA, YUV  







但是运行 


$handle=imagick_readimage("3.gif");
$image_width = imagick_getwidth($handle);
imagick_destroyhandle($handle);
echo "$image_width";
?>

便会出现 

Fatal error: Call to undefined function imagick_readimage() in C:\AppServ\www\t.php on line 2

错误,请问这个是怎么回事?

imagemagick 是不是安装成功了,要是安装成功了 为什么会找不到函数呢?

急 中。。。

------解决方案--------------------
先执行
print_r(get_extension_funcs('magickwand'));
看看都有哪些函数可用

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.