|
Posted by Veikko Mδkinen on 06/28/05 13:23
Zbigniew Lisiecki wrote:
> Hi,
> to show a big picture on a web page i divided it into pieces
> and put them together in a table:
>
> <table>
> <tr>
> <td>
> <a href="part1.jpg">
> <img src="part1.jpg" width="150">
> </a>
>
> to load a chosen part in original size one has to click on it.
> Yet loading of a whole table is still very slow. Does the width
> transformation occur on a client side !!! ?
> Still if it's made by apache on server side how time-effective it
> is ?
Apache doesn't do any image transformation. It doesn't even know there
is a <img> tag or that it has some width attribute in your html source.
It's the browser who scales the picture.
Using big pictures and scaling them down with <img width=..> is a
really bad idea because the browser needs to download the big picture
and the scale it while rendering HTML. This is not just extremely slow
but it also makes images look bad. Browsers are for browsing, not for
image manipulation.
> Surely it's better to prepare part[1-n].jpg as part[1-n].smaller.jpg
> in smaller sizes, but i have a lot pictures, so I am looking for an
> effective automatism. Could somebody help me, please.
> best regards
> zbyszek
> ps: how could one shrink *jpg images in batch
- graphical image manipulation program like Photoshop, Infranview or
ExifFPro (there are many, many more if these don't suit you or your
favorite operating system)
- command line tool like ImageMagick's convert (available for Linux and
Win/Cygwin among others).
- image gallery web application (written in php running on your server
for example).
-veikko
--
veikko
mail@ .com
makinen
[Back to original message]
|