Dear all,

This is my first website I try to create with drupal and I run into a problem.
I have been searching the internet all afternoon for my problem.
Unfortunately I could not find a solution so I hope you can help me out.

I have installed the image gallery.
Now I want to activate the image toolkit in combination with ImageMagick and Drupal asks me for a path to the "convert" binary.
The proposed path is: /usr/bin/convert
I have been looking all over my system for this path, but I couldn't find it.
How can I find this path, where should I look? Is there something I need to install?

I hope you can help me out with this.

Thank you in advance.

Regards,
Jurriaan

Comments

lvthunder’s picture

Do you have Imagemagick installed on your server? The Imagemagick binaries are separate from Drupal.

jsonke’s picture

Yes,
I have ImageMagick installed on my server.

abloodworth’s picture

Do you happen to be running Windows? I just ran around in circles trying to chase this down. I have a convert.exe file in C:\WINDOWS\system32, but apparently this is a Windows utility for converting file systems and you can have a conflict between the two. http://www.imagemagick.org/pipermail/magick-users/2002-March/001612.html, http://marc.info/?l=imagemagick&m=96216760430150&w=2. If you know where the ImageMagick convert.exe is on your system, do you know where it is? If so, that would be the path to use. E.g. C:\Magick\convert

abloodworth’s picture

More info for windows users about testing from the command line after installing the proper ImageMagick convert.exe (I got the full ImageMagick distribution from http://www.imagemagick.org/script/binary-releases.php): http://www.totalchoicehosting.com/forums/lofiversion/index.php/t19149.html

However no matter what I make the path, I can't get Drupal to find convert.exe. I've tried paths from the C:\ directory, but am guessing that isn't working because it's above the "root" as Drupal or the web server sees it. However, I even tried putting convert.exe in /files/ and entered /files/, /files/convert, and /files/convert.exe, but still get error messages saying, "The specified ImageMagic path /files/convert does not exist." PHP is not in safe mode, and I have no value in openbasedir (see http://drupal.org/node/131305). Does anyone have any idea why this wouldn't be working, or what my path should be?

Incidentally, I know this isn't the problem because I checked my php_info, but haven't been able to modify any PHP Admin Values as in an .htaccess file, as I've seen many posts (see http://drupal.org/node/131305, http://codex.gallery2.org/Gallery2:FAQ#Does_G2_work_with_Safe_Mode_PHP.3F). E.g.:

php_admin_value open_basedir none
php_admin_flag safe_mode off

I get a 500 server error when I put anything like that in any .htaccess file (whether Drupal or Gallery2).

The PHP website seems to say you can't modify php_admin_value or php_admin_flag in an .htaccess file: http://us2.php.net/configuration.changes. Is there a way to modify your httpd.conf file so you *can* actually do this?

Myoos’s picture

this way solved my problem .. and I found it here
C:\Windows\System32\convert.exe
thank u all so much for your help
best of luck =)

Anonymous’s picture

If using PHP/Drupal on a Windows system, with ImageMagick in for example C:\ImageMagick, then don't forget to add your web user to the windows user rights... Right-click on ImageMagick folder > tab security > add.... In my case for example IUSR_test, then set read/execute rights for all files and folders below imagemagick.

Then just enter c:\imagemagick\convert.exe in drupal and it works.