Forums / Setup & design / Problem showing images in Linux with <img src=" ">

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

eZ debug

Timing: Jan 18 2025 04:16:10
Script start
Timing: Jan 18 2025 04:16:10
Module start 'content'
Timing: Jan 18 2025 04:16:10
Module end 'content'
Timing: Jan 18 2025 04:16:10
Script end

Main resources:

Total runtime0.2371 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0121 589.2734180.8125
Module start 'content' 0.01210.0071 770.085998.1641
Module end 'content' 0.01920.2179 868.2500526.9063
Script end 0.2371  1,395.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00482.0203200.0002
Check MTime0.00170.7287200.0001
Mysql Total
Database connection0.00461.924610.0046
Mysqli_queries0.177274.72431410.0013
Looping result0.00170.69841390.0000
Template Total0.217391.610.2173
Template load0.00150.651110.0015
Template processing0.215890.991310.2158
Override
Cache load0.00120.512310.0012
Sytem overhead
Fetch class attribute can translate value0.00200.862310.0020
XML
Image XML parsing0.00020.085610.0002
General
dbfile0.00301.2485200.0001
String conversion0.00000.003930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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