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.

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 30 2025 21:43:44
Script start
Timing: Jan 30 2025 21:43:44
Module start 'layout'
Timing: Jan 30 2025 21:43:44
Module start 'content'
Timing: Jan 30 2025 21:43:44
Module end 'content'
Timing: Jan 30 2025 21:43:44
Script end

Main resources:

Total runtime0.0259 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.0064 588.2578151.2266
Module start 'layout' 0.00650.0044 739.4844220.7188
Module start 'content' 0.01080.0135 960.20311,005.9297
Module end 'content' 0.02430.0016 1,966.132837.9922
Script end 0.0259  2,004.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003111.9434140.0002
Check MTime0.00124.6485140.0001
Mysql Total
Database connection0.00072.749410.0007
Mysqli_queries0.003714.384930.0012
Looping result0.00000.057010.0000
Template Total0.00114.310.0011
Template load0.00093.377210.0009
Template processing0.00020.936710.0002
Override
Cache load0.00062.436810.0006
General
dbfile0.00031.266780.0000
String conversion0.00000.030340.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