ImageMagick : convert not found

Author Message

Gerard Ouiller

Friday 10 September 2010 1:29:45 am

Hi,

I cleared my cache and now there are no more images on my website. It's an issue with ImageMagick and convert.

In my EZPublish error.log : eZImageManager::createImageAlias: Failed converting ..

and in my Apache error_log I have tons of : sh: /convert: No such file or directory

It's strange, my ImageMagick seems ok : which convert returns /usr/bin/convert

In phpinfo() I can see imagick section, and imagick enabled, 3.0.0, ...

Same thing with php -i | grep imagick
/etc/php.d/imagick.ini,
imagick
imagick module => enabled
...

In my settings/override/image.ini.append.php :

[ImageMagick]
IsEnabled=true
ExecutablePath=/usr/bin
Executable=convert

(I tried ExecutablePath=/usr/bin and ExecutablePath=,same thing).

I don't know what to do, for me everthing seems ok, both ImageMagick or EZPublish ...

If somebody has an idea, thx in advance. (PS : my config : PHP 5.2, Imagick 3.00, Centos 5)

Regards.

Jérôme Vieilledent

Friday 10 September 2010 7:20:24 am

Hi Gérard

Mmm it seems that you have an INI issue here... Be aware that the default value (in settings/image.ini) for [ImageMagick].ExecutablePath is an empty string (it explains your /convert errors).

So my guess would be a problem in your image.ini.append.php override. Can you show the whole image.ini content please ?

Activating debug (clear the cache after) should also be very helpful :)

SEBBANE Alexandre

Friday 10 September 2010 10:26:57 am

Hello

can you go to the setup > configuration ini page in your ezpublish admin and choose image.ini in your siteaccess : you choose have the list of the variable and you will see which settings are take into account.

Paris, France

Gerard Ouiller

Monday 13 September 2010 12:42:59 am

Hello,

First, thank you Jerome and thank you Alexandre having answered.

Unfortunately, both Admin Panel & INI files seem correct :

Name default "ImageMagick"
  IsEnabled override true
  Handler default "eZImageShellFactory"
  ExecutablePath override "/usr/bin"  
  Executable override "convert"  
  PreParameters default ""
  PostParameters default ""

settings/image.ini :

ImageConverters[]
ImageConverters[]=ImageMagick
ImageConverters[]=GD

...

[ImageMagick]
Name=ImageMagick
IsEnabled=true
Handler=eZImageShellFactory
ExecutablePath=
Executable=convert
# ExecutableMac=convert
# ExecutableUnix=convert
PreParameters=
PostParameters=

settings/override/image.ini.append.php

<?php /* #?ini charset="utf-8"?
[ImageMagick]
IsEnabled=true
ExecutablePath=/usr/bin
Executable=convert
[FileSettings]
ImagePermissions=0777
*/ ?>

Christian Rößler

Monday 13 September 2010 2:15:26 am

After reading your infos, i might consider checking the following:

  • has the webserver-user read and execute permissions on convert binary? check this really by invoking convert as www-data (or whatever user you use) user to be sure.
  • has it worked before clearing the cache?
  • did you do apache updates? perhaps doing a graceful reload does somehow "refresh" the apache2-mod-php5 instance. this might be the last resort as all seems to be correct set up and ini's are correct.
  • check the re-created/cached inifiles (php-arrays in *.php files) in var/cache/ini folder. are the permissions correct? what does really got stored here? my guess is that clearing the cache has altered file permissions on those files/folders and ez cannot re-create cache files - somehow - or similar.

chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

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

eZ debug

Timing: Jan 30 2025 00:44:15
Script start
Timing: Jan 30 2025 00:44:15
Module start 'layout'
Timing: Jan 30 2025 00:44:15
Module start 'content'
Timing: Jan 30 2025 00:44:15
Module end 'content'
Timing: Jan 30 2025 00:44:15
Script end

Main resources:

Total runtime0.0115 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 588.1328151.2109
Module start 'layout' 0.00400.0018 739.343836.6484
Module start 'content' 0.00580.0046 775.992299.3125
Module end 'content' 0.01040.0011 875.304741.9922
Script end 0.0115  917.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002017.0342140.0001
Check MTime0.00087.2894140.0001
Mysql Total
Database connection0.00054.274110.0005
Mysqli_queries0.001916.271630.0006
Looping result0.00000.070310.0000
Template Total0.00097.610.0009
Template load0.00075.851010.0007
Template processing0.00021.682310.0002
Override
Cache load0.00054.143810.0005
General
dbfile0.00109.056580.0001
String conversion0.00000.043440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs