我正在尝试在同一台计算机上启用imagick和gmagick扩展(ubuntu 12.04-尽管在旧版本中存在相同问题)。

我有一个正在运行的ImageMagick/Imagick安装程序-具有206种受支持的格式...直到启用gmagick模块的那一刻-然后它报告支持0。通过以下响应,我得以隔离问题:https://stackoverflow.com/a/11350707/543871。启用gmagick后,graphicsmagick可以很好地工作,而以imagemagick为代价。有任何想法吗?这是启用gmagick之前和之后phpinfo的输出:

之前(仅安装imagick):

imagick module  enabled
imagick module version  3.0.1
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.6.9-7 2012-04-30 Q16 http://www.imagemagick.org
ImageMagick copyright   Copyright (C) 1999-2011 ImageMagick Studio LLC
ImageMagick release date    2012-04-30
ImageMagick number of supported formats:    206
ImageMagick supported formats   3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, J2C, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV, MP4, 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, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV

之后(同时启用了imagick和gmagick):
imagick module  enabled
imagick module version  3.0.1
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.6.9-7 2012-04-30 Q16 http://www.imagemagick.org
ImageMagick copyright   Copyright (C) 1999-2011 ImageMagick Studio LLC
ImageMagick release date    2012-04-30
ImageMagick number of supported formats:    0
ImageMagick supported formats   no value

最佳答案

PHP维护人员认为,“由于某些符号相似,因此Imagick和Gmagick不能真正在相同的环境中共存。” (请参阅https://bugs.php.net/bug.php?id=59285。)

关于php - 启用Gmagick PHP模块会使ImageMagick(Imagick)模块报告0种受支持的格式,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11854027/

10-11 02:35