How to install image magic in Windows 7. I followed these instruction
To install IMagick on Windows XP (php 5.2.x)
download and install ImageMagick-6.5.8-7 Q16-windows-dll.exe http://www.imagemagick.org/download/binaries/ ImageMagick-6.5.8-7-Q16-windows-dll.exe
download php_imagick_dyn-Q16.dll from: http://valokuva.org/outside-blog-content/ imagick-windows-builds/080709/
copy dll to [PHP]/extension dir and rename it to php_imagick.dll
You have to edit your php.ini file and add new extension
extension=php_imagick.dll
Save ini file and restart apache server.
(If necessary, restart your windows)
phpinfo()
should show imagick enabled.
after that I execute a sample script but its not working. It shows the Imagic
class missing error.
Fatal error: Class 'Imagick' not found in C:...\\imgborder.php on line XXX
Please help me to install Imagick. :-(
Check permissions on the .dll file to make sure the Apache user has read access to the file. Better change the permission of the [PHP]/extension directory.
To change the permission
Change the permission of user to Full Control.
Add the extension to your php.ini:
extension=php_imagick.dll
. extension=ext/php_imagick.dll
. Just look how the existing extensions are defined and do alike.
At this point, Imagick is installed, but you will probably encounter this error:
ImagickException: NoDecodeDelegateForThisImageFormat
It means you have to install ImageMagick as well:
Here are Windows binaries for imagick 2.3.0 compiled with VC6 (you can find VC9 binaries at Mikko's blog) against PHP 5.3.2 (API20090626).
I've research this solution, here you will find all necessary libraries. Download this http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.6.2-10-Q16-windows-dll.exe
Find your DLLs here http://www.peewit.fr/imagick/
To know which library fit your needs easily run phpinfo()
There you find the following row eg
Compiler MSVC9 (Visual C++ 2008)
The MSVC9 tells you that it's compiled with Visual C9, so you need to download the VC9 version. Thats all.
Have nice day, takes me several hours of research.
This may be hitting a nail with a 5-pound hammer, but I like Cygwin , a Unix-like environment for Windows; it includes imagemagick as a package.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.