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.

eZ debug

Timing: Jan 18 2025 10:30:44
Script start
Timing: Jan 18 2025 10:30:44
Module start 'layout'
Timing: Jan 18 2025 10:30:44
Module start 'content'
Timing: Jan 18 2025 10:30:46
Module end 'content'
Timing: Jan 18 2025 10:30:46
Script end

Main resources:

Total runtime1.9057 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1641152.6406
Module start 'layout' 0.00630.0040 741.804739.4766
Module start 'content' 0.01031.8931 781.2813591.1719
Module end 'content' 1.90340.0023 1,372.453112.1250
Script end 1.9057  1,384.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2099160.0003
Check MTime0.00170.0882160.0001
Mysql Total
Database connection0.00110.058910.0011
Mysqli_queries1.839496.5171620.0297
Looping result0.00070.0370600.0000
Template Total1.866397.920.9331
Template load0.00240.128020.0012
Template processing1.863897.800120.9319
Template load and register function0.00040.021910.0004
states
state_id_array0.00100.053710.0010
state_identifier_array0.00160.083220.0008
Override
Cache load0.00210.1115340.0001
Sytem overhead
Fetch class attribute can translate value0.00120.062230.0004
Fetch class attribute name0.00240.123550.0005
XML
Image XML parsing0.00080.043330.0003
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00260.1369180.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs