[Imc-uk-features] Re: [imc-uk-tech] Displaying thumbnails of images

Chris chris at aktivix.org
Sun Nov 27 07:41:57 PST 2005


Hi

The code to display thumbnails of images in articles has
been deployed and in addition all articles with images and
all articles with comments have been marked as unproduced
-- this means that over the next few days articles.changed
will take longer to run as tens of thousands of articles
are going to be regenerated so that they get the new
thumbnail and comments diplay.

One thing that we might want to change is the CSS for
thumbnails -- take a look at this page:

  http://www.indymedia.org.uk/en/2005/11/328514.html

The extra whitespace is caused by the original images
being different heights (426px and 414px) and the only way
to solve this for all possible image sizes it to set a
height for the thumbnail and this looks OK for images that
have a odd aspect ratio, eg:

  http://chris.dev.indymedia.org.uk/en/2005/11/324135.html

But when all the images are the same size it dosn't look
so great because the boxes have too much whitespace:

  http://chris.dev.indymedia.org.uk/en/2005/11/324101.html

So... I think the options are:

1. Leave the CSS as it is and accept that when images of
   different heights are uploaded the layout goes a bit
   weird.

2. Set a height and remove the border around each
   thumbnail.

Of course since this is just a CSS thing we can do
different things for different regions...

Chris

-- 
Aktivix -- Free Software for a Free World



More information about the IMC-UK-Features mailing list