WampServer 和 Imagemagick,無法識別 imagick php 模塊 (WampServer and Imagemagick, imagick php module not recogized)


問題描述

WampServer 和 Imagemagick,無法識別 imagick php 模塊 (WampServer and Imagemagick, imagick php module not recogized)

I'm using windows 7, 64 bit. I downloaded imagemagick ‑ tested it by opening cmd and typing "convert" and it responded with a bunch of stuff that shows its working in windows. edit: but php does not recognize it.

Other relevant things: 

  1. Using php 5.3.13

  2. Apache 2.2.22

  3. Added windows variable: name ‑ MAGICK_HOME value ‑ c:\imagemagick  

Added what appears to be appropriate php_imagick.dll into the php ext folder. (Pasting errors below)

Please let me know if I've supplied enough info for troubleshooting. This is an important issue for me.

The thing is here, it appears this is a very finicky system to add. But because I'm designing some distributable code, its imperative that I can test the imagemagick functionality on localhost. 


Errors from apache error file:


PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' ‑ %1 is not a valid Win32 application.\r\n in Unknown on line 0


Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick.dll' ‑ %1 is not a valid Win32 application.

in Unknown on line 0


PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick_ts.dll' ‑ The specified module could not be found.\r\n in Unknown on line 0
Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/ext/php_imagick_ts.dll' ‑ The specified module could not be found.

in Unknown on line 0


參考解法

方法 1:

I read that there can be a bug for windows 64 version. Of course I just assumed that that probably won't apply to me...a type of thinking which is responsible for some many random deaths in this world...

So I installed 32 bit version of Wamp...and life is good. Imagick/Imagemagick works

(by Orangeman555Orangeman555)

參考文件

  1. WampServer and Imagemagick, imagick php module not recogized (CC BY‑SA 3.0/4.0)

#imagick #imagemagick #apache #PHP #wampserver






相關問題

Imagick 安裝錯誤 - 類未定義 (Imagick Installation Errors - Class Undefined)

GD/Imagick 不保存我的圖像 (GD/Imagick doesn't save my image)

Imagick 使用不同的目錄和數據庫 PDF 來縮略圖 JPG (Imagick using different directory and database PDF to thumbnail JPG)

如何在不損失分辨率和質量的情況下減小圖像尺寸(高度、寬度) (How to decrease image size(height, width) without losing its resolution and quality)

Đang cố gắng để tưởng tượng chạy trên PHP 5.4.3 ở Windows x64 (Trying to get imagick running on PHP 5.4.3 at Windows x64)

WampServer 和 Imagemagick,無法識別 imagick php 模塊 (WampServer and Imagemagick, imagick php module not recogized)

PHP Imagick:如何將自定義圖像屬性保存到文件 (PHP Imagick: How to save custom image property to file)

PHP Imagick - 顯示多圖像 TIFF 的第一片 (PHP Imagick - display first slice of mutli image TIFF)

可以加快 php/imagick 中的圖像加載速度 (Possible to speed up image loading in php/imagick)

PHP imagick 相當於 -define png:color-type=6 (PHP imagick equivalent of -define png:color-type=6)

php Imagick::levelImage 使用 (php Imagick::levelImage usage)

imagick:無法查詢字體度量 (Imagick: Failed to query the font metrics)







留言討論