empty space when displaying images

Author Message

Bjarte Lunde

Monday 01 December 2003 3:32:02 pm

Hi there...

When displaying thumbnails i get a lot of emtpy space before and after the <img ...> code...

Is there any way to remove these empty spaces?
I've tried looking through the code, but it seems like it's eZpub that generates them when generating the <img ...> code.

I also want to remove the border=0 from the code.

Cheers,
- Bjarte

Tore Skobba

Tuesday 02 December 2003 1:29:34 am

Hi

I had the same problem, basically this is a/can be a problem with EZ, extensive generating of whitespaces (just look at the html source generated). I solved it by copying "ezimage.tpl" from the standard forlder to my design folder ("templates/content/datatype/view/"), then deleting most of the white spaces etc. at the end. i.e.

"{/let}
{/default}
{/section}"

becomes "{/let}{/default}{/section}"

However this depends upon what EZ code you use to display your image, I use {attribute_view_gui attribute=$node.data_map.picture ..

Cheers
Tore

Bjarte Lunde

Tuesday 02 December 2003 6:09:46 am

Thanks!

This works for me..

By the way.. Do anyone know how to watermark pictures?

Alex Jones

Tuesday 02 December 2003 7:49:09 am

Do you want the watermaks to be visible, or hidden? If so, do you want it done automatically by eZ publish?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bjarte Lunde

Tuesday 02 December 2003 9:53:33 am

I want the watermark to visable, and i want eZpub to do it...

It's for use in a gallery...

Tore Skobba

Monday 12 January 2004 9:31:50 am

Update

If you override the standard view image.tpl (as you might have done to avoid the blank spaces). Then you MUST undo your changes when upgrading to Ez 3.3.1 or later versions (delete it). Or else the images wont display! So frustarating to learn, arghhh sitting for like 3 hours banging my head.

Cheers
Tore

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 19 2025 01:22:10
Script start
Timing: Jan 19 2025 01:22:10
Module start 'layout'
Timing: Jan 19 2025 01:22:10
Module start 'content'
Timing: Jan 19 2025 01:22:11
Module end 'content'
Timing: Jan 19 2025 01:22:11
Script end

Main resources:

Total runtime0.8873 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 590.3906152.6250
Module start 'layout' 0.00540.0027 743.015639.4453
Module start 'content' 0.00810.8777 782.4609599.1797
Module end 'content' 0.88590.0014 1,381.640612.1563
Script end 0.8872  1,393.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3997160.0002
Check MTime0.00120.1372160.0001
Mysql Total
Database connection0.00080.094210.0008
Mysqli_queries0.822592.6974680.0121
Looping result0.00080.0868660.0000
Template Total0.850695.920.4253
Template load0.00180.207920.0009
Template processing0.848795.657720.4244
Template load and register function0.00020.021110.0002
states
state_id_array0.00150.167510.0015
state_identifier_array0.00140.155920.0007
Override
Cache load0.00160.1788360.0000
Sytem overhead
Fetch class attribute can translate value0.00090.102530.0003
Fetch class attribute name0.00150.164170.0002
XML
Image XML parsing0.00090.099230.0003
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00070.0815160.0000
String conversion0.00000.000940.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
6content/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
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0001 secs