首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Imagemagick设置

Imagemagick设置
EN

Stack Overflow用户
提问于 2011-04-15 15:11:39
回答 1查看 728关注 0票数 0

我的雇主有一个要求上传非常大的高分辨率图像。通常情况下,上传这样的图片是行不通的。

有人告诉我,使用ImageMagick将有助于将图像处理负担转移到Linux服务器而不是php (因此,我不必将php max_memory设置到某个可笑的级别)。

无论如何,我遵循了本教程:http://thewichitacomputerguy.com/blog/how-enable-install-imagemagick-drupal,我得到了以下响应:

代码语言:javascript
复制
* warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/convert) is not within the allowed path(s): (/var/www/vhosts/mysite.co.uk/httpdocs:/tmp) in /var/www/vhosts/mysite.co.uk/httpdocs/includes/image.imagemagick.inc on line 55.

* No file /usr/bin/convert could be found. PHP's open_basedir security restriction is set to /var/www/vhosts/mysite.co.uk/httpdocs:/tmp, which may be interfering with the attempts to locate ImageMagick.

我已经确定了/usr/bin/convert文件确实存在于服务器上,但是我对如何继续操作感到困惑。

你们能帮个瘾君子吗?

EN

回答 1

Stack Overflow用户

发布于 2011-04-15 15:15:05

如果您正在共享主机,您将需要与您的提供商交谈。如果您管理您的服务器,您将需要编辑您的php.ini以允许open_basedir访问您的imagemagick目录。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5678773

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档