ImageMagick problem

Author Message

Udo Baumgart

Saturday 22 October 2005 10:59:27 am

Hi,

i have limited access to my webserver. No shell access at all :-(
So i tried to install the convert program from ImageMagick into cgi-bin - where it runs without problems.
I then tried to configure ezPublish to use the convert. ezPublish lies in an ezpublish-subdir on the same directory-level as cgi-bin.

website
..cgi-bin
....convert (ImageMagick)
..ezpublish
....settings
......override
........image.ini.append.php

In image.ini.append.php i wrote:

[ConverterSettings]
UseConvert=true

[ShellSettings]
ConvertPath=/website/cgi-bin/
ConvertExecutable=convert

[Rules]
DefaultRule=image/jpeg;convert
Rules[]=image/jpeg;image/jpeg;convert
Rules[]=image/png;image/png;convert
Rules[]=image/gif;image/png;convert
Rules[]=image/xpm;image/png;convert

With debug on i get the following error message:

Failed executing: convert '-quality' '75' '-geometry' '100x160>' {...} Error: , Return: 127

I tried the following as ConvertPath:

/website/cgi-bin
../cgi-bin
../cgi-bin/
/cgi-bin

I tried to preface the absolute pathnames with the absolute path of "my" dirs on the server:

/is/htdocs/16712/website/cgi-bin

Nothing works. The error message is always the same.

If i call convert directly via http://.../cgi-bin/convert it works an produces the usual usage text.

HELP PLEASE!

Ciao, Udo

Marko Žmak

Saturday 22 October 2005 4:22:25 pm

Try to execute the convert program from PHP manually and see what error do you get. Also try to check out the PHP error log.

And try to see if you can run from PHP any other program that is located in the cgi-bin dir.
Maybe you don't have the permissions to run programs in cgi-bin from PHP.

P.S. Also try:

ConvertPath=website/cgi-bin/

instead of:

ConvertPath=/website/cgi-bin/

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Udo Baumgart

Sunday 23 October 2005 1:28:02 pm

After analysing ezimageshellhandler.php i saw that the error message should output the complete PATH that it uses. That means: The ConvertPath is ignored!
I tried to hardcode the path to convert and it works without problems.
That could not be the solution...
Why is my entry in settings/override/image.ini.append.php (CHMOD is -rw-rw-rw) ignored???
Any ideas?

Ciao, Udo

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 18 2025 19:10:11
Script start
Timing: Jan 18 2025 19:10:11
Module start 'layout'
Timing: Jan 18 2025 19:10:11
Module start 'content'
Timing: Jan 18 2025 19:10:11
Module end 'content'
Timing: Jan 18 2025 19:10:11
Script end

Main resources:

Total runtime0.6561 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.3438152.6250
Module start 'layout' 0.00640.0034 741.968839.4453
Module start 'content' 0.00980.6447 781.4141545.6641
Module end 'content' 0.65450.0016 1,327.078112.1719
Script end 0.6561  1,339.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5145160.0002
Check MTime0.00140.2133160.0001
Mysql Total
Database connection0.00060.098110.0006
Mysqli_queries0.596190.8543570.0105
Looping result0.00060.0848550.0000
Template Total0.622694.920.3113
Template load0.00220.336320.0011
Template processing0.620394.546120.3102
Template load and register function0.00020.032810.0002
states
state_id_array0.00140.208410.0014
state_identifier_array0.00200.303620.0010
Override
Cache load0.00190.2871450.0000
Sytem overhead
Fetch class attribute can translate value0.00100.153120.0005
Fetch class attribute name0.00110.169540.0003
XML
Image XML parsing0.00070.112520.0004
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00080.1189180.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs