Forums / Developer / ImageMagick : convert not found

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

eZ debug

Timing: Jan 29 2025 13:33:57
Script start
Timing: Jan 29 2025 13:33:57
Module start 'content'
Timing: Jan 29 2025 13:33:57
Module end 'content'
Timing: Jan 29 2025 13:33:57
Script end

Main resources:

Total runtime0.1222 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9297180.8359
Module start 'content' 0.00640.0053 768.7656103.0391
Module end 'content' 0.01170.1104 871.8047531.7734
Script end 0.1221  1,403.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.5295200.0002
Check MTime0.00120.9818200.0001
Mysql Total
Database connection0.00090.744810.0009
Mysqli_queries0.082867.77851410.0006
Looping result0.00090.76901390.0000
Template Total0.110290.210.1102
Template load0.00060.483710.0006
Template processing0.109689.676810.1096
Override
Cache load0.00040.324110.0004
Sytem overhead
Fetch class attribute can translate value0.00050.405810.0005
XML
Image XML parsing0.00030.220910.0003
General
dbfile0.00685.5755200.0003
String conversion0.00000.005130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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