Forums / Developer / Problem with ImageMagick

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

eZ debug

Timing: Jan 18 2025 15:56:31
Script start
Timing: Jan 18 2025 15:56:31
Module start 'content'
Timing: Jan 18 2025 15:56:31
Module end 'content'
Timing: Jan 18 2025 15:56:31
Script end

Main resources:

Total runtime0.1429 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.0053 587.7109180.8359
Module start 'content' 0.00530.0076 768.546997.8672
Module end 'content' 0.01290.1300 866.4141526.7734
Script end 0.1429  1,393.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.3996200.0002
Check MTime0.00130.9114200.0001
Mysql Total
Database connection0.00060.433910.0006
Mysqli_queries0.097868.44601410.0007
Looping result0.00120.81501390.0000
Template Total0.129590.610.1295
Template load0.00090.613710.0009
Template processing0.128689.999410.1286
Override
Cache load0.00050.384010.0005
Sytem overhead
Fetch class attribute can translate value0.00080.534610.0008
XML
Image XML parsing0.00030.183310.0003
General
dbfile0.00684.7377200.0003
String conversion0.00000.003530.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