开发者

Imagemagick setup

my employers have a requirement to upload very large hi-res images. Ordinarily uploading such images does not work.

I was told using ImageMagick would help shift the image processing burden to the Linux server instead of php (so I don't have to set the php max_memory to some ridiculous level).

Anyway, I followed this tutorial: http://thewichitacomputerguy.com/blog/how-enable-install-imagemagick-drupal I got the following response:

* 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.

I have determin开发者_StackOverflow中文版ed the /usr/bin/convert file definitely exists on the server but I am at a loss regarding how to proceed.

Can you guys help a drupaler out?


If you're on shared hosting, you will need to speak with your provider. If you administer your server, you will need to edit your php.ini to allow open_basedir access to your imagemagick directory.


ImageMagik always give me a hard time...

That tutorial you cited isn't the way that I typically go about installing it. I think that installing ImageMagik to your /includes folder could be related to the problem. If you want to continue to try to make that work, then try configuring ImageMagik in the Drupal admin pages to look in the right place: admin/settings/imageapi/config

(assuming you've got the ImageAPI module)

If you can't make the magik happen in there.. I'd try installing ImageMagik with SSH (assuming you've got shell access, because this is a dedicated server)

To do that get yourself Putty

Then figure out what distro of linux you are running (check your host's forum, or ask them.. or try this) and run a command like this:

apt-get install imagemagick

or like this..

yum install imagemagik

Once you get it you'll just need to test it and set up the Drupal image handling with ImageCache

A few cool related modules (once you get it working):

  • ImageField focus
  • Avatar crop
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜