Reviewed & tested by the community
Project:
ImageAPI
Version:
6.x-1.9
Component:
ImageAPI Imagick
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2009 at 06:36 UTC
Updated:
28 Mar 2012 at 11:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
alexh commentedThe module logic assumes that you cannot use ImageMagick if the open_basedir security restriction is enabled.
But this is not true. On my shared host, I can execute /usr/bin/convert although it is not on the allowed paths.
Therefore, I added the following check in front of the others in the function _imageapi_imagemagick_check_path in the file imageapi_imagemagick.module (line 162):
You can try with this. If it does not work you can also try to copy convert one of the allowed paths.
P.S. I changed Component to Imagick, because it is not related to GD, but to ImageMagick.
Comment #2
khan2ims commentedThanks! The above worked for me!
Imran Khan
Project Manager
New Earth Marketing
Comment #3
drewish commentedComment #5
earthangelconsulting commentedyep, had to do the same today, with a client hosted on HostGo (http://www.hostgo.com ) First time this issue has given me grief, with installs of imagecache on the servers of quite a number of different hosting companies.
any chance that this patch can be added to the module itself? :-)
cheers
Peter 'Fish' Fisera
Earth Angel Consulting
Comment #6
bryanhidalgo commentedThanks, #1 worked for me
Comment #7
lance.gliser commentedLove the solution alexh. Very reasonable, and absolutely correct. This patch should be reviewed for addition to the module. It's a bug fix, not so much a support request. Modifying the statuses slightly to be more accurate.
Comment #8
lance.gliser commentedI created a patch of the above could. Could I get someone to try it out, please?
The patch I posted on this number won't work, it's applied at the project level, rather than the module.
Comment #9
lance.gliser commentedRerolled the changes to affect from the module's directory correctly to version 1.9.
Comment #10
lance.gliser commentedResetting the que to test the patch.
Comment #11
lance.gliser commentedThis one includes proper unix line endings and utf-8 encoding
Comment #12
lance.gliser commentedThis solution has been accepted into the image module's imagemagick code about a week ago.
Comment #13
zareen commentedThis is still broken in the latest update 6.x-1.10. I updated and broke all my sites and had to search two days again for the fix cause I couldn't remember where I found it. Pasting in the code from number 1 fixed it. This time I'm going to remember where to find this fix!!!
Comment #14
lance.gliser commentedThis has been tested by multiple people. Let's get it added to the next version if possible.
Comment #15
iantresman commentedThis worked for me. Here are some simpler instructions:
imageapidirectory, make a backup copy, and then open the file:imageapi_imagemagick.moduleTo: