Problem with ImageMagick

Author Message

Jérôme Vieilledent

Thursday 24 July 2008 7:39:49 am

Hi all !

I've got an issue using ImageMagick with eZImageShellHandler : No picture alias are displayed. When I look at the debug, I've got this message :

Failed executing: /usr/bin/convert '-quality' '75' '-geometry' '600x600>' 'var/cleanstate/storage/images/releases/clean-state/235-1-fre-FR/clean-state.jpg' 'JPEG:var/cleanstate/storage/images/releases/clean-state/235-1-fre-FR/clean-state_reference.jpg', Error code: 5

I searched and tried many things but nothing seems to work :-(. I tried to execute the command via a PHP cli script and it works. But when using http, I always get the Error code 5.
I can't find anything about this error code.
Any idea ?

PS : I use Apache 2.0 / PHP 5.2.3 / EZP 4.0.0 / MacOSX Leopard

Carlos Revillo

Thursday 24 July 2008 9:55:38 am

maybe a problem with permissions in your var folder?
chown it recursively to de user running apache or chmod it to 777.

Jérôme Vieilledent

Friday 25 July 2008 1:03:00 am

I already checked this and it doesn't seem to be the problem.
In fact the problem seemed to come from the Apache that comes with MAMP (version 1.7.0)
I compiled a newer version via MacPorts and it resolved the problem :-).
Thanks for your help !

MAMP is bad :-(

kubus media

Monday 04 August 2008 1:21:15 am

/usr/bin/convert '-quality' '75' '-geometry' '600x600>'

GD should also be able, to do this - if imagemagick doesn't work with your MAMP installation, the easiest way to "fix" the problem could be switching to GD.

Jérôme Vieilledent

Monday 04 August 2008 2:08:05 am

Hi,

In fact, the problem really came from Apache embedded with MAMP. With Apache/Php compiled from the sources with Macports, it is ok.
But there are other problems with the eZImage library. You have to get the latest SVN version to make the eZImageShellHandler work. I will report other bugs I found with that library

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 31 2025 01:30:49
Script start
Timing: Jan 31 2025 01:30:50
Module start 'layout'
Timing: Jan 31 2025 01:30:50
Module start 'content'
Timing: Jan 31 2025 01:30:50
Module end 'content'
Timing: Jan 31 2025 01:30:50
Script end

Main resources:

Total runtime0.0277 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 588.1328151.2109
Module start 'layout' 0.00840.0053 739.3438220.6875
Module start 'content' 0.01370.0123 960.03131,001.7891
Module end 'content' 0.02610.0016 1,961.820333.9922
Script end 0.0277  1,995.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003211.6789140.0002
Check MTime0.00134.8180140.0001
Mysql Total
Database connection0.00072.531010.0007
Mysqli_queries0.005519.985430.0018
Looping result0.00000.090210.0000
Template Total0.00124.310.0012
Template load0.00103.442110.0010
Template processing0.00020.807010.0002
Override
Cache load0.00072.404710.0007
General
dbfile0.00030.948880.0000
String conversion0.00000.048140.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