如何在Windows 7上安装Imagick / imagemagick [英] How to install Imagick/imagemagick on windows 7
问题描述
如何在Windows 7中安装image magic。我按照这些说明进行操作
How to install image magic in Windows 7. I followed these instruction
在Windows XP上安装IMagick(php 5.2.x)
To install IMagick on Windows XP (php 5.2.x)
-
下载并安装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 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
从以下网址下载php_imagick_dyn-Q16.dll:
http://valokuva.org/outside-blog-content/ imagick-windows-builds / 080709 /
download php_imagick_dyn-Q16.dll from: http://valokuva.org/outside-blog-content/ imagick-windows-builds/080709/
将dll复制到[PHP ] / extension dir并将其重命名为php_imagick.dll
copy dll to [PHP]/extension dir and rename it to php_imagick.dll
您必须编辑php.ini文件并添加新扩展名
You have to edit your php.ini file and add new extension
extension=php_imagick.dll
保存ini文件并重新启动apache服务器。
Save ini file and restart apache server.
(如有必要,请重新启动Windows)
(If necessary, restart your windows)
phpinfo()
s hould显示启用了imagick。
phpinfo()
should show imagick enabled.
之后我执行了一个示例脚本,但它无效。它显示 Imagic
类缺失错误。
after that I execute a sample script but its not working. It shows the Imagic
class missing error.
致命错误:Class'Imagick'在C:... \ imgborder.php找不到第XXX行
Fatal error: Class 'Imagick' not found in C:...\imgborder.php on line XXX
请帮我安装Imagick。 : - (
Please help me to install Imagick. :-(
推荐答案
检查.dll文件的权限,以确保Apache用户具有对该文件的读取权限。更好的更改[PHP] /扩展名目录的许可。
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.
更改权限
- 右键单击文件或文件夹
- 选择属性
- 选择安全选项卡
- 点击编辑按钮。
- Right click the file(s) or folder(s)
- Select "Properties"
- Select "Security" tab
- Click on "Edit" button.
将用户权限更改为完全控制。
Change the permission of user to Full Control.
这篇关于如何在Windows 7上安装Imagick / imagemagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!