I asked my shared hosting for imagemagick, they said it was installed and the complete path for the convert binary is here: /usr/bin/convert

I go to /admin/config/media/image-toolkit and set Path to the "convert" binary to /usr/bin/convert

I save and recieve the error The specified ImageMagick file path /usr/bin/convert does not exist.

What to do?

I was thinking, how can the module have access to a path outside the drupal installation? (I'm not a developer)
Thanks!

Comments

News4u’s picture

wraybowling’s picture

This is still a real issue, especially for anyone not using Linux. All of the Drupal developers I work with are using Apple computers.

MAMP comes with imagemagick at /Applications/MAMP/Library/bin/convert
Occasionally, I've circumvented using MAMP and use homebrew to manage binaries at /usr/local/bin/convert

Either way, there's just no good reason for this module to be so picky about where I've put the `convert` binary. As long as convert is found via my PATH variable, this module should work.

The workaround folks are looking at is to disable security features (https://ohthehugemanatee.org/blog/2015/10/01/how-i-got-el-capitain-worki...) and make symlinks of their own but that shouldn't be the kind of work we expect every person using an apple computer to do. This issue should be fixed the right way.

aschiwi’s picture

Thanks @wraybowling for posting the path, worked for me.
For anyone who is still stuck: imagemagick is probably still disabled in MAMP. Edit the php.ini of your current php version and uncomment ;extension=imagick.so to extension=imagick.so. Make sure to restart your server after.

darren.fisher’s picture

Not sure if I've quite grasped this but I always set the imagemagick path in the my local settings when using MAMP.

For Drupal 7 add the line:
$conf['imagemagick_convert'] = '/Applications/MAMP/Library/bin/convert';

For Drupal 8 add the line:
$config['imagemagick.settings']['path_to_binaries'] = '/Applications/MAMP/Library/bin/';

Sorry if I'm not quite grasping what the issue is here but I hope it helps all the same. Please feedback as we can request to have this added to the docs.

alphex’s picture

@Darren, in comment https://www.drupal.org/node/2276177#comment-12020300 you defined a $config var for your D8 site.

I put that in, with the right path, that I know works... and when I load the imagemagick config screen, it still says the convert command can't be found.

Am I missing something?

darren.fisher’s picture

Hmmm not sure. Sounds odd. It's been a while since I commented on this issue so I'd need to spin up a fresh install and see if anything has changed.