Forums / Install & configuration / Images not loading in install 4.0

Images not loading in install 4.0

Author Message

Brian Henkel

Tuesday 05 February 2008 7:38:16 pm

Hi,

I've installed 4.0 twice now, and the "Lyons" Banner, along with the photos, do not display. Wondering if something is amiss with my server, or if I need to change a setting to get these to display? You can see a screenshot here: http://bhenkel.echoechoplus.com/ezpublish2/snapshot.jpg

Thank you for your help!

Łukasz Serwatka

Tuesday 05 February 2008 11:57:41 pm

Hi,

Make sure that GD library or ImageMagick are installed on server. Check also path to ImageMagick in override/image.ini.append.php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Piotrek Karaś

Wednesday 06 February 2008 1:29:56 pm

Beside what Łukasz wrote, do you have your debugger on? What does it say?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Brian Henkel

Wednesday 06 February 2008 6:43:54 pm

Debugger is showing these lines for each image that should be appearing:

Warning: eZImageShellHandler::convert  	Feb 06 2008 20:26:29

Failed executing: /usr/bin/convert '-quality' '75' '-geometry' '764' 'var/ezwebin_site/storage/images/media/banners/only-lyon-banner/244-1-eng-US/Only-Lyon-Banner.jpg' 'JPEG:var/ezwebin_site/storage/images/media/banners/only-lyon-banner/244-1-eng-US/Only-Lyon-Banner_billboard.jpg', Error code: 127

Error: eZImageManager::createImageAlias 	Feb 06 2008 20:26:29

Failed converting var/ezwebin_site/storage/images/media/banners/only-lyon-banner/244-1-eng-US/Only-Lyon-Banner.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/media/banners/only-lyon-banner/244-1-eng-US' 

THANKS IN ADVANCE FOR LOOKING INTO THIS.

Brian Henkel

Wednesday 06 February 2008 7:04:24 pm

I submitted a help ticket to my server admin. This was his response. Thanks again to whomever can help me out here.

<i>
Your support ticket has been answered.

Please do not respond directly to this e-mail.
Tickets can be updated at EchoEchoPlus.Com.

Below is a copy of our response:

Ticket ID: 832-2439
---------------------------------
Subject: Re: GD Library or ImageMagick
---------------------------------

Hi Brian

An example: The "Only Lyon" banner

This is your codesnip:
-----------------------------
<img src="/ezpublish2/" alt="Only Lyon Banner" border="0" width=""
height="" />
-----------------------------

Compare it to this codesnip:
-----------------------------
<img
src="/var/ezwebin_site/storage/images/media/banners/only-lyon-banner/244-1-esl-MX/Only-Lyon-Banner_billboard.jpg"
alt="" border="0" width="764" height="197" />
-----------------------------
From: http://www.coacalco.com/
(Same layout as yours, but working)

Do you see how your code is missing the image reference? It simply
links to /ezpublish2/ which isn't an image - it is a folder.

When the raw code doesn't contain an image, it seems quite silly to
suggest it may have anything to do with GD or Imagemagick.

This is obviously a code problem - maybe you just need to specify the
image somewhere in the admin section?

In any case, it has nothing to do with the image itself - the image
is here:

http://bhenkel.echoechoplus.com/ezpublish2/var/ezwebin_site/storage/images/media/banners/only-lyon-banner/244-1-eng-US/Only-Lyon-Banner.jpg

...and it is not created with GD or Imagemagick

It looks like something went wrong during the installation - or
during the configuration.

If it isn't one of these two it has to be a) an error in ezpublish or
b) an error in the template.
</i>

Łukasz Serwatka

Wednesday 06 February 2008 11:13:10 pm

The debug output message says clearly that ImageMagick is not configured properly.
Error code: 127 means imagemagick can not be found. You have to provide a correct path as I suggested in first post in settings/override/image.ini.append.php

<?php /* #?ini charset="utf-8"?

[ImageMagick]
IsEnabled=true
ExecutablePath=/path/where/convert/reside
*/ ?>

or you just try with GD, then disable ImageMagick like:

<?php /* #?ini charset="utf-8"?

[ImageMagick]
IsEnabled=false
*/ ?>

Remember to clear the cache.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Brian Henkel

Thursday 07 February 2008 3:51:05 am

Well it turns out, Lukasz, that you are smart, and my server administer is not :-) It was a beautiful sight to see images finally show up on my site! Also, thank you as well, Piotrek. I'm new to the eZ Publish community, but have already seen how valuable you guys are to everyone like me.

So, if you wouldn't mind teaching a newbie, what's the difference between GD Library and ImageMagick? Are there any pros or cons to turning off ImageMagick and using GD (as I did)? How would I have determined the path to ImageMagick to change in override/image.ini.append.php (what Lukasz first suggested)?

Anyhow, getting this working and now finally being able to get started with eZ Publish has made my day. MUCH APPRECIATED.

Łukasz Serwatka

Thursday 07 February 2008 4:37:49 am

<i>So, if you wouldn't mind teaching a newbie, what's the difference between GD Library and ImageMagick? Are there any pros or cons to turning off ImageMagick and using GD (as I did)? How would I have determined the path to ImageMagick to change in override/image.ini.append.php (what Lukasz first suggested)?</i>

http://ez.no/developer/forum/developer/imagemagick__1/re_imagemagick

It depends how advanced image manipulation do you need. ImageMagick is more powerful then GD. If you just need scaling (99% cases) then GD is just fine.

In case of more questions you know where to ask ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Chris Anthony

Friday 22 February 2008 11:57:16 am

I have the same problem. However, I have disabled ImageMagick and still no pictures!