Problem showing images in Linux with <img src=" ">

Author Message

Angel Martinez

Friday 01 April 2005 7:23:48 am

Hello:

I have a template, and it have a image, and it is show fine in Windows. This is the code:

<a href="http://verbo.dcs.fi.uva.es" title="Grupo ECA-SIMM">
	  <img class="eca-logo" src="C:/eclipse/workspace/Instalacion/Imagenes/ez.JPG" width="125" height="25" alt="Grupo ECA-SIMM" />
	</a>

But, when I use it in Linux, the image isn&acute;t show. This is the code for Linux:

<a href="http://verbo.dcs.fi.uva.es" title="Grupo ECA-SIMM">
	  <img class="eca-logo" src="/root/workspace/Instalacion/Imagenes/ez.JPG" width="125" height="25" alt="Grupo ECA-SIMM" />
	</a>

And I have checked that when I use a partial path to the image, when this image is locate in the ez directory (src="/ez/design/ez/images/dpi_logo.gif"), it work fine.

What is the problem?.

Thanks.

Ɓukasz Serwatka

Sunday 03 April 2005 10:18:44 pm

Hi Angel,

Maybe you have wrong permissions to file
/root/workspace/Instalacion/Imagenes/ez.JPG

I don`t know the reason but better is to store images in eZ design dir and use

<img src={"dpi_logo.gif"|ezimage} />

if this img is a part of a design.

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

Angel Martinez

Monday 04 April 2005 7:29:07 am

Hello Lukasz:

I tried to modify the permissions to the file (I given all permissions to this file), but I obtained the same error.

Too, I want that an user can select an image file at anywhere directory. I want not to limit to the user at the eZ design dir.

Thanks.

david gue

Wednesday 20 October 2010 5:26:42 am

"

Hi Angel,

Maybe you have wrong permissions to file
/root/workspace/Instalacion/Imagenes/ez.JPG

I don`t know the reason but better is to store images in eZ design dir and use

<img src={"dpi_logo.gif"|ezimage} />

if this img is a part of a design.

"

Hate to digg up the dead but i have to say thx for this post and thx to ez for not purging old posts. i was going crazy trying to add a image manually inside a .tpl and it wouldnt work, all i had to do is upload it to the design folder and add this, <img src={"dpi_logo.gif"|ezimage} />.

Greatly appreciated

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.