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.