Forums / Setup & design / empty space when displaying images

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