How to install ImageMagick with Wampserver 3.0.0 64?
Downloaded and installed latest ImageMagick:
ImageMagick-7.0.2-0-Q16-x64-dll.exe
Downloaded
php_imagick-3.4.3rc1-5.6-ts-vc11-x64
from http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc1/Unpacked
php_imagick.dll
into[wampserver directory]\bin\php\php5.6.16\ext
Added
extension=php_imagick.dll
to
[wampserver directory]\bin\apache\apache2.4.17\bin\php.ini
Got "no decode delegate for this image format" error, but at least imagick showed up in phpinfo() where I could see that php_imagick.dll was compiled with
ImageMagick 6.9.3-7 Q16 x64
. There was no obvious way to know this beforehand.Downloaded
ImageMagick-6.9.3-7-Q16-x64-dll.exe
from http://ftp.icm.edu.pl/packages/ImageMagick/binaries/ (ImageMagick has removed this package from their site).Uninstalled
ImageMagick-7.0.2-0-Q16-x64
,
installedImageMagick-6.9.3-7-Q16-x64
toc:\ImageMagick
,
addedc:\ImageMagick
to PATH (in front, to avoid collision with windows convert.exe).Verified everything ok with:
$image = new Imagick(); $image->readImage([path to my jpeg]); $wm = new Imagick(); $wm->readImage([path to my watermark png]); $image->compositeImage($wm, imagick::COMPOSITE_OVER, 5, 5); header("Content-Type: image/jpeg"); echo $image;