Forums / General / Error with convert ImageMagick, please help me !

Error with convert ImageMagick, please help me !

Author Message

Thomas DELHOMENIE

Tuesday 21 September 2004 3:49:13 am

Hi,

I used ApacheToolBox to install Apache PHP and MySQL on Red Hat Linux. I installed ImageMagick-6.0.7-3 as RPM. Everything is fine but I have a problem with images.
When I add an image in ezpublish, I can't see it and the debug output tells me :

Warning: eZImageShellHandler::convert Sep 21 2004 11:54:30
Failed executing: /usr/bin/convert '-geometry' '600x600>' 'var/plain/storage/images/image_1/183-4-fre-FR/image_1.png' 'PNG:var/plain/storage/images/image_1/183-4-fre-FR/image_1_reference.png', Error: , Return: 1
Error: eZImageManager::createImageAlias Sep 21 2004 11:54:30
Failed converting var/plain/storage/images/image_1/183-4-fre-FR/image_1.png to alias original in directory var/plain/storage/images/image_1/183-4-fre-FR
Error: eZImageManager::createImageAlias Sep 21 2004 11:54:30
Failed creating the referenced alias reference, cannot create alias medium

I checked, the path for convert is OK. The web server has rights for all files.
I really don't know what is the error.
I really need help.please

Tom

Kåre Køhler Høvik

Tuesday 21 September 2004 4:41:35 am

Have you tried executing

/usr/bin/convert '-geometry' '600x600>' 'var/plain/storage/images/image_1/183-4-fre-FR/image_1.png' 'PNG:var/plain/storage/images/image_1/183-4-fre-FR/image_1_reference.png'

from the eZ publish root ?

Does the file var/plain/storage/images/image_1/183-4-fre-FR/image_1.png exist ?

Kåre Høvik

Thomas DELHOMENIE

Tuesday 21 September 2004 5:16:44 am

Firstly, thank you for answering.

When I execute it in ezpublish root, I have the following output :

convert : no decode delegate for this image format 'var/plain/storage/images/image_1/183-4-fre-FR/image_1.png'
convert : missing an image filename 'PNG:'var/plain/storage/images/image_1/183-4-fre-FR/image_1_reference.png'

and I've got file 'var/plain/storage/images/image_1/183-4-fre-FR/image_1.png'

Ole Morten Halvorsen

Tuesday 21 September 2004 5:31:52 am

There is something wrong with your ImageMagick. Does it have support for converting png? Make sure you have libpng installed.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Thomas DELHOMENIE

Tuesday 21 September 2004 5:52:15 am

I uninstalled ImageMagick (which was installed with RPM) and installed it with sources, and it works !!!

Thank you

Tom

Ole Morten Halvorsen

Tuesday 21 September 2004 6:01:22 am

Glad to help! :)

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Jason Senich

Friday 12 August 2005 8:12:31 am

I had to add the apache user to the xgrp group. Once I did this the problem went away.