ImageMagick - two ways

Author Message

Ulrich L.

Friday 04 February 2005 2:21:11 pm

Hi,
while trying to generate a new site with the wizard, I wanted to get full ImageMagick functionality.

First, I installed a IM package as described on imagemagick.org. I compiled it, and test from the shell was fine, even when accessing the shell not as root. (Test is: "convert -version") However, the wizard didn't find it, even when pointing to the directory "/usr/local/bin". What's wrong about this?

Second, I installed a precompiled binary package directly under ez root. Now the wizard found it, after pointing to the certain directory.

Can anybody tell me what went wrong with my first attempt?

Björn Dieding@xrow.de

Monday 07 February 2005 5:44:58 am

turn on debugging

can the apache user execute in the dir /usr/local/bin?

I think this is a permission problem

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Ulrich L.

Saturday 12 February 2005 1:57:16 pm

Thank you for your answer.
The permissions are 755 on all files in "/usr/local/bin", as I understand it this means that all can execute, apache included.
In the meantime I recognised that the other "local" install doesn't work either, after disabling IM in the override/image.ini I finally got function, but of course only GD.

Ulrich L.

Saturday 12 February 2005 2:22:55 pm

I enabled IM again and typed the path manually (before it was the wizard) - now it seems to work. Or is GD still working...?

Is there a status display in eZpublish where I can see which graphic engine is running?

However, I'm not satisfied with the results of the generated images, they seem to be highly compressed and look much worse than the originals. Can I adjust any settings in order to improve the results (e.g. setting the compression rate in JPG generation etc.)?

Greg Rundlett

Monday 14 February 2005 5:31:56 am

If open_basedir is in effect, Apache might not be able to test for the presence of ImageMagick in /usr/local/bin even if the permissions on the directory would allow it. You can check the value of open_basedir by putting a file in your document root with this simple php code:

<?php
// filename: phpinfo.php
// purpose: shows me the details of my PHP configuration
phpinfo();
?>

If open_basedir is not restricting where a PHP script can wander in your system, then the <b>directory</b> where ImageMagick is installed needs 'execute' permission for the script to go there.

This command tells the system to let 'Others' have execute permissions on the directory
chmod o+x /usr/local/bin

hope that helps

nothing to sig here, move along

Ulrich L.

Monday 14 February 2005 12:52:31 pm

Thank you, the permissions seem all to be fine.

I assume the IM engine I compiled (located in /usr/local/bin) is now running fine for ezpublish. However, I'm not sure wether it is really IM or GD...? I would be grateful for a hint wether there is a status display in the admin interface reporting which graphic engine actually is selected and running.

I found out I can control the quality of conversion using [MIMETypeSettings] in override/image.ini.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.