Problem with image magick and image module
HI !
I've a serious problem with image magick or the image module, I don't know.
Here's the situation :
- Image Magick is installed and (I think it is) running on my server (verification done in php info)
imagick
ImageMagick support enabled
Magick Backend ImageMagick
ImageMagick version 6.0.6
PHP imagick version 0.9.11
MaxRGB 65535
Supported image formats tmp
Font Family - Name AvantGarde - AvantGarde-Book
-The image module is installed and the file imagemagick.inc is in the ''includes'' directory of my installation.
-The option imagemagick is choosen in the ''settings'' page
- I have a flexinode with two image upload fields.
BUT, after having saved my flexinode with the image fields, the images aren't displayed in the article.
I've made a test with the GD library and everything works finen thumbnails are resized etc. but the result is horrible, the image quality is really bad. That's why I want to use the imagemagick library.
I really really need your help if you know what can happen or if you had such a problem...
Thanks a lot for your collaboration :)

The images aren't even uploaded on the server.
After a check in the image folders :
The images aren't even uploaded on the server. They were when I used to use th GD library.
Strange, isn't it ?
Do the permissions of the
Do the permissions of the imagemagick.inc file match the permissions of other files in the includes directory? It's all I can think of off the top of my head...
Do the logs say anything? Or do they assume the operation went okay? What about the webserver logs? Do you have access to them?
Pobster
- The permissions match the
- The permissions match the other files ones in the include directory.
- the Drupal logs says "file myimage.jpg not found"
- nothing special in the webserver error logs and access logs
The original image is now
The original image is now uploaded, I don't know what happened but the thumbnails are not created.
I've verified the path to convert in imagemagick.inc and it seems to be correct, something like /usr/local/bin/
but I don't know how it should be.
My drupal install is in /var/www/vhosts/mysite.tld/httpdocs/da2
Will it find automaticaly the right path ? I hope you understand what I mean :)
You don't need to edit the
You don't need to edit the imagemagick.inc file at all? You should edit the variable in your database (obviously under 'variables'!) called 'image_imagemagick_convert' which by default should be '/usr/bin/convert'. I believe there are 3 or more instances of this variable in the include file and so, maybe you've only altered one of them? Best thing to do is to upload a fresh version it and simply change the variable instead.
Pobster
I'm sorry but I don't
I'm sorry but I don't understand where I have to edit these variables...
You say "the database". The drupal (main) database ?
Yes, the only database you
Yes, the only database you have! Use phpmyadmin or something to view your database, go into the 'variables' table and sort alphabetically. Search out the imagemagick variable I mentioned above and change its value to your entire path to the imagemagick convert file - mine is default '/usr/bin/convert'. NOTE - not variableS, simply one variable.
Hope this solves your issue!
Pobster
hum... there's no
hum... there's no imagemagick variable in the database.
Only an image_toolkit with this s:11:"imagemagick"; and that's it.
That's why I didn't understand what you mean :)
On mine its;
On mine its also set in; image_convert_path s:16:"/usr/bin/convert";
If it's not there, then that probably means Drupal hasn't come across any code which has set it... Now that would be an interesting situation...
Pobster
I'm gonna try to reinstall
I'm gonna try to reinstall imagemagick. Thanks for your help Pobster.
I've reinstalled --> same problem
After a re-installation of imagemagick, I have the same problem.
I have my own server and convert is /usr/bin/convert
When I enter the command 'convert' via ssh, it seems to work, but it seems Drupal (which is in /var/www/vhosts/mysite/drupal/ on the server ) can't find it :(
Would I have to install imagick in the drupal folder to make it work or what ?
Nope it runs it 'from the
Nope it runs it 'from the commandline' so to speak... I'd reinstall a fresh copy of the image module (and the imagemagick module if you're using it?)
Pobster
Solved
All was a "path" problem, I was running Plesk on my server and even if I had selected no Open-base-dir in php.ini it didn't work. So I've re-installed my server with a woody debian and now, it works... :)